wiki.techinc.nl/includes
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
..
actions actions: Update deprecated code in Actions::checkCanExecute() 2021-10-28 11:23:32 +01:00
api Localisation updates from https://translatewiki.net. 2021-11-01 09:20:00 +01:00
auth Use correct default value when calling Status::getWikiText 2021-10-16 22:35:01 +02:00
block Cleanup hard-deprecated code in blocks. 2021-10-26 06:44:05 -07:00
cache Hard deprecate LinkCache::addGoodLinkObj 2021-10-26 18:21:32 +03:00
changes language: Fix nullable documentation for property, args and return types 2021-10-20 20:17:09 +00:00
changetags ChangeTags: Set interface flag when parsing tag names 2021-09-27 16:10:44 +02:00
collation Update link target 2021-10-16 19:26:02 +00:00
CommentFormatter RowCommentIterator: Cast data coming out of the DB 2021-10-06 09:06:09 +11:00
composer
config Introduce includes/Storage/PageUpdaterFactory 2021-07-19 12:15:26 +02:00
content Hard-deprecate Content::getParserOutput and AbstractContent::fillParserOutput. 2021-10-29 14:04:22 +03:00
context docs: Fix nullable documentation for class properties 2021-09-24 00:54:53 +00:00
dao build: Updating dependencies 2021-07-22 03:36:05 +00:00
db Deprecate wfLogProfilingData(), improve statsd/profiling docs 2021-10-02 23:23:01 +01:00
debug docs: Fix nullable documentation for class properties 2021-09-24 00:54:53 +00:00
deferred Replace deprecated JobQueueGroup::singleton in JobQueueEnqueueUpdate 2021-10-19 20:09:02 +00:00
diff Rename ParserOutput::{allow,prevent}Clickjacking() -> ::{get,set}PreventClickjacking() 2021-10-01 14:13:47 -04:00
edit
editpage editpage: Replace usage of Title in TextboxBuilder::class 2021-09-20 10:24:00 +01:00
exception Merge "Revert "Introduce AbstractLocalizedException"" 2021-09-14 20:10:48 +00:00
export import/export: Add documentation for nullable arguments 2021-10-16 21:49:18 +00:00
externalstore Merge "ExternalStoreDB::getMaster: Hard deprecate now it's unused in prod" 2021-09-08 20:52:48 +00:00
filebackend Drop experimental FileJournal system without deprecation 2021-11-01 14:08:09 +11:00
filerepo Drop experimental FileJournal system without deprecation 2021-11-01 14:08:09 +11:00
gallery Fix height of traditional galleries in new media dom 2021-10-08 17:57:44 +00:00
historyblob HistoryBlobStub: add getLocation() to get $mOldId 2021-10-19 18:23:30 +00:00
Hook Remove PHPUnit hooks 2021-08-30 00:28:32 +02:00
HookContainer UserOptions: remove deprecated hooks. 2021-10-26 12:55:01 +00:00
htmlform Rename ParserOutput::{allow,prevent}Clickjacking() -> ::{get,set}PreventClickjacking() 2021-10-01 14:13:47 -04:00
http Allow using a reverse proxy for local HTTP requests 2021-10-15 10:56:46 -07:00
import Merge "import/export: Add documentation for nullable arguments" 2021-10-20 18:47:28 +00:00
installer Localisation updates from https://translatewiki.net. 2021-11-01 09:20:00 +01:00
interwiki
jobqueue JobQueueRedis: Replace deprecated zSize with zCard 2021-10-26 01:28:27 +00:00
json FormatJson: Optimize encode() for supported PHP versions 2021-08-20 08:03:11 -04:00
language Merge "language: Fix nullable documentation for property, args and return types" 2021-11-02 10:21:05 +00:00
languages Update 台灣 to 臺灣 according to Wikipedia-zh village pump discussions 2021-10-26 11:02:07 +00:00
libs Drop experimental FileJournal system without deprecation 2021-11-01 14:08:09 +11:00
linkeddata
linker Remove unused class fields in LinkRenderer 2021-11-01 15:59:42 +01:00
logging Merge "Change null to [] for html attributes on call of Html functions" 2021-09-29 16:20:41 +00:00
mail EmailNotification: fix misplaced tab 2021-09-20 22:25:20 +00:00
media media: Add missing false return types to doc 2021-10-16 21:49:29 +00:00
Message
Navigation
objectcache objectcache: Change variable name from master to primary 2021-10-14 19:40:01 +00:00
page Give skins more flexibility over table of contents render 2021-10-25 22:26:41 +00:00
pager AllMessagesTablePager: Avoid double class mw-datatable 2021-10-09 16:59:10 +00:00
ParamValidator/TypeDef UserDef: creating from id 0 should be unknown user, not context ip 2021-09-14 03:25:40 +00:00
parser Give skins more flexibility over table of contents render 2021-10-25 22:26:41 +00:00
password Remove PasswordCannotMatchUsername password policy 2021-09-06 14:55:12 +00:00
Permissions permissions: Avoid null as init for PermissionManager->usersRights cache 2021-09-22 22:28:32 +02:00
poolcounter Add slow-parsoid log channel 2021-09-15 15:48:11 +10:00
preferences Add new ParserOutput::{get,set}OutputFlag() interface 2021-10-15 14:25:54 -04:00
profiler profiler: Remove dependency on WebRequest from Profiler 2021-10-09 03:00:45 +00:00
rcfeed Fix some @stable for ... annotations to use @stable to ... 2021-07-08 02:54:59 +00:00
registration Merge "registration: Apply manifest v2 logic to hypothetical v3" 2021-09-10 06:47:36 +00:00
resourceloader Merge "resourceloader: Remove use of Timing class" 2021-10-30 06:52:33 +00:00
Rest REST: gracefully handle all exceptions. 2021-11-02 20:33:13 +01:00
Revision Split PageArchiveTest 2021-10-25 10:41:33 +02:00
revisiondelete build: Update mediawiki/mediawiki-phan-config to 0.11.0 2021-09-07 17:19:05 +02:00
revisionlist build: Updating dependencies 2021-07-22 03:36:05 +00:00
search Merge "Use Message::sizeParams to simplify code when building messages" 2021-10-15 23:21:38 +00:00
session Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
shell Remove $wgShellLocale, always use C 2021-09-24 17:25:01 -07:00
site Various updates and fixes to PHPDoc documentation 2021-08-09 09:26:23 +02:00
skins Merge "Give skins more flexibility over table of contents render" 2021-10-27 23:02:57 +00:00
sparql sparql: Replace deprecated Http::userAgent() in SparqlClient 2021-08-04 13:54:13 +00:00
specialpage specialpage: Remove deprecated check of special page object checks 2021-10-27 22:53:59 +01:00
specials Special:Contributions - verify early year and month are ints 2021-11-01 19:16:12 -07:00
Storage Change User::isAnon to !User::isRegistered in PageEditStash 2021-10-19 20:05:35 +02:00
templates
tidy Using @return never documentation on always-throw-function 2021-09-07 17:29:03 +02:00
title Make TitleValue fields private 2021-10-25 08:17:58 -07:00
upload Merge "Revert "Introduce AbstractLocalizedException"" 2021-09-14 20:10:48 +00:00
user Exclude null values for flag UserOptionsManager::EXCLUDE_DEFAULTS 2021-11-01 20:44:13 +01:00
utils docs: Fix nullable documentation for class properties 2021-09-24 00:54:53 +00:00
watcheditem Change WatchedItemStore to cache an array instead of MapCacheLRU 2021-10-18 13:00:03 -07:00
watchlist build: Updating dependencies 2021-07-22 03:36:05 +00:00
widget Remove unreachable code after exception/die/exit 2021-09-03 23:14:28 +00:00
xml Simplify else-branches after continue/break 2021-08-17 22:51:43 +02:00
.htaccess
ActorMigration.php Schema migration for revison_actor_temp table removal 2021-07-14 08:29:04 +10:00
ActorMigrationBase.php Schema migration for revison_actor_temp table removal 2021-07-14 08:29:04 +10:00
AjaxDispatcher.php ILoadBalancer/ILBFactory: Rename commitMasterChanges() to commitPrimaryChanges() 2021-09-02 11:27:10 -07:00
AjaxResponse.php
AutoLoader.php Merge "AutoLoader: Use ?? instead of multiple if-isset-else branches" 2021-08-12 02:05:25 +00:00
BadFileLookup.php
CategoriesRdf.php
Category.php Remove Title from signatures in CategoryViewer 2021-09-13 16:14:06 +00:00
CategoryViewer.php Remove Title from signatures in CategoryViewer 2021-09-13 16:14:06 +00:00
CommentStore.php Fix various typos in documentation 2021-08-23 09:03:44 +00:00
CommentStoreComment.php
ConfiguredReadOnlyMode.php
ContentSecurityPolicy.php
DefaultSettings.php Drop experimental FileJournal system without deprecation 2021-11-01 14:08:09 +11:00
Defines.php Prepare for REL1_37 cut, labelling master as 1.38-alpha 2021-09-13 19:19:42 -07:00
DeprecatedGlobal.php StubObject: add magic __get() and __set() 2021-09-04 05:37:25 +00:00
DerivativeRequest.php build: Update mediawiki/mediawiki-phan-config to 0.11.0 2021-09-07 17:19:05 +02:00
DevelopmentSettings.php Set $wgIncludejQueryMigrate to false as default 2021-08-29 02:09:35 +02:00
DummyLinker.php Introduce CommentFormatter 2021-09-28 11:13:03 -07:00
EditPage.php Replace Content::getParserOutput call to ContentRenderer::getParserOutput 2021-10-20 12:11:24 +03:00
Emptiable.php
EventRelayerGroup.php
ExtensionInfo.php
FauxRequest.php
FauxRequestUpload.php
FauxResponse.php
FeedUtils.php Introduce CommentFormatter 2021-09-28 11:13:03 -07:00
FileDeleteForm.php DeleteAction-related cleanup, part 3 2021-10-06 13:43:54 +02:00
ForeignResourceManager.php
ForkController.php Unbreak ForkController 2021-07-14 14:08:22 +02:00
FormOptions.php
GitInfo.php
GlobalFunctions.php Merge "Revert "wfParseUrl: rely on parse_url for proto-relative urls"" 2021-10-28 19:26:21 +00:00
HeaderCallback.php
Hooks.php Mark Hooks::runner() as @internal 2021-07-28 23:49:27 +00:00
Html.php Html::openElement() micro-optimisations 2021-08-02 18:10:59 +00:00
Linker.php Give skins more flexibility over table of contents render 2021-10-25 22:26:41 +00:00
LinkFilter.php
ListToggle.php
MagicWord.php
MagicWordArray.php docs: Fix nullable documentation for class properties 2021-09-24 00:54:53 +00:00
MagicWordFactory.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
MediaWiki.php profiler: Remove dependency on WebRequest from Profiler 2021-10-09 03:00:45 +00:00
MediaWikiServices.php Merge "Make ArchivedRevisionLookup a service" 2021-10-20 18:51:32 +00:00
MediaWikiVersionFetcher.php
MergeHistory.php Support fluent interface for StatusValue 2021-08-02 15:14:11 -04:00
MovePage.php Migrate WikiPage::doEditUpdates() to using PageUpdaterFactory 2021-10-07 11:17:43 +01:00
MWGrants.php Reapply "GrantsInfo service to replace MWGrants" 2021-09-18 08:52:22 +00:00
MWNamespace.php Hard-deprecate remaining MWNamespace methods 2021-10-20 21:16:25 +02:00
MWTimestamp.php
NoLocalSettings.php
OrderedStreamingForkController.php
OutputHandler.php OutputHandler: Omit debug() call for common case 2021-09-23 00:19:57 +01:00
OutputPage.php Give skins more flexibility over table of contents render 2021-10-25 22:26:41 +00:00
PageProps.php Soft deprecate PageProps::getInstance() 2021-09-26 00:22:26 +00:00
PathRouter.php
PHPVersionCheck.php PHPVersionCheck: Mark PHP 7.4.0 - 7.4.2 as buggy 2021-10-12 20:21:38 +00:00
Pingback.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
ProtectionForm.php Revert "Use CsrfTokenSet as CSRF token source" 2021-08-05 15:48:26 -07:00
ProxyLookup.php
RawMessage.php
ReadOnlyMode.php
ServiceWiring.php Remove unused class fields in LinkRenderer 2021-11-01 15:59:42 +01:00
Setup.php Remove $wgShellLocale, always use C 2021-09-24 17:25:01 -07:00
SiteConfiguration.php
SiteStats.php docs: Fix nullable documentation for class properties 2021-09-24 00:54:53 +00:00
SiteStatsInit.php Same code style and formatting for exists-style SQL queries 2021-08-12 11:37:58 +02:00
Status.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
StreamFile.php Rename four config variables to avoid 'blacklist' term 2021-09-08 23:32:29 +01:00
StubGlobalUser.php Emit deprecation warnings reading from $wgUser 2021-09-15 20:17:04 -07:00
StubObject.php StubObject: add magic __get() and __set() 2021-09-04 05:37:25 +00:00
StubUserLang.php
TemplateParser.php TemplateParser: Remove support for deprecated cache-disabling parameter 2021-09-17 19:48:54 +00:00
TemplatesOnThisPageFormatter.php
Title.php Merge "Type-hint LinkTarget" 2021-10-25 14:53:17 +00:00
TitleArray.php docs: Declare UserArray/TitleArray as Iterator<User>/Iterator<Title> 2021-08-30 22:37:54 +02:00
TitleArrayFromResult.php docs: Declare UserArray/TitleArray as Iterator<User>/Iterator<Title> 2021-08-30 22:37:54 +02:00
TitleFactory.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
TrackingCategories.php Register omitted tracking categories 2021-10-16 12:14:47 +00:00
WebRequest.php WebRequest: Document getVal caveat and recommend getText or getRawVal 2021-08-23 23:43:10 +00:00
WebRequestUpload.php
WebResponse.php
WebStart.php Using @return never documentation on always-throw-function 2021-09-07 17:29:03 +02:00
WikiMap.php
WikiReference.php