1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-03 20:22:46 +01:00
phorge-phorge/src/aphront/response
epriestley 20ce1a905f Replace AphrontUsageException with AphrontMalformedRequestException
Summary:
Ref T1806. Ref T7173. Context here is that I want to fix "you can not log in to this instance" being a confusing mess with an opaque error. To do this without hacks, I want to:

  - clean up some exception handling behavior (this diff);
  - modularize exception handling (next diff);
  - replace confusing, over-general exceptions with tailored ones in the Phacility cluster, using the new modular stuff.

This cleans up an awkward "AphrontUsageException" which does some weird stuff right now. In particular, it is extensible and extended in one place in Diffusion, but that extension is meaningless.

Realign this as "AphrontMalformedRequestException", which is a better description of what it is and does: raises errors before we can get as far as normal routing and site handling.

Test Plan: Hit some of these exceptions, saw the expected "abandon all hope" error page.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T1806, T7173

Differential Revision: https://secure.phabricator.com/D14047
2015-09-03 10:04:17 -07:00
..
__tests__ Be more strict about "Location:" redirects 2014-08-18 14:11:06 -07:00
Aphront304Response.php Remove @group annotations 2014-07-10 08:12:48 +10:00
Aphront400Response.php Remove @group annotations 2014-07-10 08:12:48 +10:00
Aphront403Response.php Update AphrontRequestFailure to common display libs 2014-09-26 17:40:09 -07:00
Aphront404Response.php phtize all the things 2015-05-22 21:16:39 +10:00
AphrontAjaxResponse.php Modularize Celerity postprocessors 2015-06-20 06:10:42 -07:00
AphrontDialogResponse.php Remove @group annotations 2014-07-10 08:12:48 +10:00
AphrontFileResponse.php Prepare file responses for streaming chunks 2015-03-14 08:29:12 -07:00
AphrontHTMLResponse.php Remove @group annotations 2014-07-10 08:12:48 +10:00
AphrontHTTPProxyResponse.php Add an AphrontHTTPProxyResponse 2015-01-27 14:50:52 -08:00
AphrontJSONResponse.php Various linter fixes 2015-05-20 07:27:41 +10:00
AphrontPlainTextResponse.php Fix an undeclared property on AphrontPlainTextResponse 2015-06-15 07:05:03 -07:00
AphrontProxyResponse.php Allow Controllers to return a wider range of "response-like" objects 2015-09-01 15:52:52 -07:00
AphrontRedirectResponse.php Improve granluarity and defaults of security.allow-outbound-http 2015-03-23 10:44:03 -07:00
AphrontReloadResponse.php Remove @group annotations 2014-07-10 08:12:48 +10:00
AphrontResponse.php Extend from Phobject 2015-06-15 18:02:27 +10:00
AphrontStandaloneHTMLResponse.php Improve top-level exception handling 2015-01-02 10:49:27 -08:00
AphrontUnhandledExceptionResponse.php Replace AphrontUsageException with AphrontMalformedRequestException 2015-09-03 10:04:17 -07:00
AphrontWebpageResponse.php Remove @group annotations 2014-07-10 08:12:48 +10:00