1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-03 11:21:01 +01:00
phorge-phorge/src/aphront
epriestley 36c6eb9663 Improve routing of "/robots.txt", "/favicon.ico", "/status/", and 404 on custom Sites
Summary:
Fixes T12919. Fixes T13636. Prior to this change, some well-known resource paths don't route on sites like ResourceSite.

- `/robots.txt`: Make it route on ResourceSite and just deny the whole site.
- `/favicon.ico`: Make it route on ResourceSite.
- `/status/`: Make it route on ResourceSite.
- 404: Make it render a 404 on ResourceSite.

Test Plan:
  - Visited all URIs on ResourceSite, got sensible responses.
  - Visited all URIs on main site.
  - Visited 404 while logged out, got login page.

Maniphest Tasks: T13636, T12919

Differential Revision: https://secure.phabricator.com/D21606
2021-03-11 14:05:39 -08:00
..
__tests__ Add a test to verify that all routing maps are plausibly valid, and remove some dead routes 2020-02-14 18:06:24 -08:00
configuration Improve routing of "/robots.txt", "/favicon.ico", "/status/", and 404 on custom Sites 2021-03-11 14:05:39 -08:00
exception Convert some whiny exceptions into quiet MalformedRequest exceptions 2016-08-16 15:50:21 -07:00
handler Fix a looping workflow when trying to submit a partially-effectless transaction group 2019-05-23 19:16:17 -07:00
headerparser Move lingering "Aphront" classes to Phabricator 2020-02-12 11:50:14 -08:00
httpparametertype Fix spelling 2017-10-09 10:48:04 -07:00
interface Allow Controllers to return a wider range of "response-like" objects 2015-09-01 15:52:52 -07:00
multipartparser Move lingering "Aphront" classes to Phabricator 2020-02-12 11:50:14 -08:00
requeststream In Conduit responses, assert that Phabricator supports a "gzip" capability 2020-04-14 16:51:03 -07:00
response Improve routing of "/robots.txt", "/favicon.ico", "/status/", and 404 on custom Sites 2021-03-11 14:05:39 -08:00
sink Fix Content-Security-Policy headers on "Email Login" page 2019-02-14 12:53:33 -08:00
site Improve routing of "/robots.txt", "/favicon.ico", "/status/", and 404 on custom Sites 2021-03-11 14:05:39 -08:00
sprite Continue moving classes with no callers in libphutil or Arcanist to Phabricator 2020-02-12 13:14:04 -08:00
writeguard Move lingering "Aphront" classes to Phabricator 2020-02-12 11:50:14 -08:00
AphrontController.php Provide an AphrontController implementation of willSendResponse() 2015-09-07 17:18:35 -07:00
AphrontRequest.php Restructure Hovercards to support more context information 2021-02-13 13:37:36 -08:00