1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-01 03:02:43 +01:00
phorge-phorge/src/applications/diffusion
epriestley 8640ab5fc3 Redirect /source/x (no slash) to /source/x/ (canonical) when viewer is logged out and "x" is public
Summary:
Fixes T12035. Normally, the "abc" -> "abc/" redirect is handled automatically when "abc" hits a 404.

However, in this case, "source/x" does not 404. We route this to a valid controller because some VCS requests omit the slashes, then manually perform the redirect if we aren't serving a VCS request.

Allow this controller to serve public resources so we can serve the redirect to logged-out users instead of prompting them to login so they can be redirected.

Test Plan: Visited `/source/x` as a logged-out user, where `x` is a public repository.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12035

Differential Revision: https://secure.phabricator.com/D17097
2016-12-20 07:48:20 -08:00
..
application Compare two branches 2016-12-05 16:25:49 -08:00
capability Simplify the implementation of PhabricatorPolicyCapability subclasses 2014-07-25 08:25:42 +10:00
conduit Compare two branches 2016-12-05 16:25:49 -08:00
config Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
controller Redirect /source/x (no slash) to /source/x/ (canonical) when viewer is logged out and "x" is public 2016-12-20 07:48:20 -08:00
data Don't track "phabricator/" staging area tags 2016-06-16 11:22:02 -07:00
doorkeeper Partially modernize Doorkeeper/Asana bridge 2014-10-01 07:09:34 -07:00
edge Fix reverting commit language 2015-06-01 09:54:30 +10:00
editor Explicitly update the repository URI index after making a URI edit 2016-12-01 14:29:39 -08:00
engine Pass GIT_ENVIRONMENTAL_MAGIC through to hook subprocesses to support Git 2.11.0 2016-12-05 12:45:30 -08:00
engineextension Cache Almanac URIs for repositories 2016-12-06 09:14:45 -08:00
exception Make repository daemon locks more granular and forgiving 2016-05-13 05:17:27 -07:00
garbagecollector Support ID-based repository URIs, and canonicalize repository URIs 2016-02-18 09:56:28 -08:00
gitlfs Support slightly prettier repository URIs in Diffusion 2016-11-13 12:42:12 -08:00
herald Fix a Herald issue where testing commits against rules with revision-related conditions would fail 2016-09-08 17:16:40 -07:00
management Don't show "clone-name" as "Short Name" 2016-11-14 22:46:40 +00:00
panel Fixed typo 2016-12-19 17:56:27 -08:00
protocol Pass GIT_ENVIRONMENTAL_MAGIC through to hook subprocesses to support Git 2.11.0 2016-12-05 12:45:30 -08:00
query Use futures to improve clustered repository main page performance 2016-12-08 07:26:32 -08:00
relationships Convert all standard relationship-editing actions to modern Relationships code 2016-06-29 11:24:52 -07:00
remarkup When commits have a "rewritten" hint, try to show that in handles in other applications 2016-08-24 09:35:19 -07:00
request Modernize UI for "Compare" in Diffusion 2016-12-05 18:10:11 -08:00
response Implement a Git LFS server which supports no operations 2016-03-17 08:08:43 -07:00
ssh Improve error messages for running git clone against a Mercurial repository 2016-12-02 07:30:03 -08:00
symbol Extend from Phobject 2015-06-15 18:02:27 +10:00
typeahead Render browse results with global result style 2016-06-20 16:49:02 -07:00
view When viewing a branch, preview differences from master 2016-12-06 08:16:41 -08:00
DiffusionLintSaveRunner.php Return Diffusion diffs through Files, not directly over Conduit 2016-08-27 09:11:03 -07:00