wiki.techinc.nl/tests
daniel 13acba25a0 REST: gracefully handle all exceptions.
ResponseFactory::createFromException already had support for arbitrary
exceptions, but Router was so far only using it for HttpExceptions,
leaving other kinds of exceptions uncaught.

In addition to catching all exceptions and generating an appropriate
JSON response for them, this patch introduces the ErrorReporter
interface, with an MWErrorReporter implementation which calls
MWExceptionHandler::rollbackMasterChangesAndLog(). This is how uncaught
errors are handled for requests coming in via api.php, so it seems
appropriate to use the same approach for requests coming in via
rest.php.

Bug: T285984
Change-Id: I0605a7693821ef58fac80ab67f51a742556a37fd
2021-11-02 20:33:13 +01:00
..
api-testing api-testing: Adjust DiffCompare expected outcome to cope with new wikidiff2 output 2021-10-06 22:30:15 +00:00
common Introduce CommentFormatter 2021-09-28 11:13:03 -07:00
integration/includes/http tests: MWHttpRequestTest is a unit test, not an integration test 2021-10-08 12:24:34 -07:00
parser Drop experimental FileJournal system without deprecation 2021-11-01 14:08:09 +11:00
phpunit REST: gracefully handle all exceptions. 2021-11-02 20:33:13 +01:00
qunit Merge "mediawiki.Title: Regenerate phpCharMappings against plain PHP 7.2" 2021-10-19 21:23:40 +00:00
selenium Merge "mediawiki.api: Move example doc from constructor to @class block" 2021-08-26 18:14:21 +00:00
.eslintrc.json
.htaccess