wiki.techinc.nl/includes/Rest/Handler
Máté Szabó c4e9f987f1 rest: Return a 400 for invalid render IDs
Why:

- The REST API takes an optional renderid param when converting HTML
  back to source wikitext, which is user-provided and may be invalid.
- Invalid render IDs cause an InvalidArgumentException to be thrown that
  causes a 500 response.

What:

- Introduce a new error message for invalid render IDs in the REST API.
- Return a 400 with this new error message for HTML reverse-parses with
  an invalid render ID.

Bug: T385568
Change-Id: I062419fe8952329a39781a49cdca2e94c3996447
(cherry picked from commit cd1d42a5066e4bcb9b9d4ed9b4f7714fd428fea3)
2025-02-04 14:54:50 +00:00
..
Helper rest: Return a 400 for invalid render IDs 2025-02-04 14:54:50 +00:00
Schema REST: Allow specifying response body schemas in json files 2024-10-10 20:42:14 -05:00
ActionModuleBasedHandler.php Add namespace to includes/api classes 2024-09-25 19:31:14 +00:00
CompareHandler.php Namespace all remaining classes in includes/parser 2024-10-15 23:54:32 +01:00
CreationHandler.php REST: introduce getBodyParamSettings 2024-05-07 17:35:36 +00:00
DiscoveryHandler.php REST: Introduce discovery endpoint 2024-09-20 17:02:59 +00:00
EditHandler.php Merge "Adding token validation to the edit handler" 2024-10-17 14:51:30 +00:00
LanguageLinksHandler.php Namespace remaining Title-related classes under \MediaWiki\Title 2023-09-19 05:21:23 +00:00
MediaFileHandler.php Use real type hints for services etc. in includes/Rest/ 2024-06-11 22:40:44 +02:00
MediaLinksHandler.php Use real type hints for services etc. in includes/Rest/ 2024-06-11 22:40:44 +02:00
ModuleSpecHandler.php REST: Introduce discovery endpoint 2024-09-20 17:02:59 +00:00
OpenSearchDescriptionHandler.php Add namespace to includes/api classes 2024-09-25 19:31:14 +00:00
PageHistoryCountHandler.php Use explicit nullable type on parameter arguments 2024-10-23 17:20:01 +00:00
PageHistoryHandler.php Add namespace to IDBAccessObject and DBAccessObjectUtils 2024-09-27 16:19:10 -04:00
PageHTMLHandler.php Deprecate Html*Helper::init() 2024-07-19 15:03:37 +00:00
PageSourceHandler.php REST: Add items wrapper for restbase compat to some response bodies 2024-10-16 12:58:10 -05:00
ParsoidHandler.php Parsoid: SiteConfig::prefixedStatsFactory() can never return null 2024-10-18 18:45:00 -04:00
RedirectHandler.php REST: Document new redirect feature. 2024-05-07 16:42:21 +02:00
RevisionHTMLHandler.php Deprecate Html*Helper::init() 2024-07-19 15:03:37 +00:00
RevisionSourceHandler.php REST: make http method available during response schema generation 2024-11-07 19:06:59 +00:00
SearchHandler.php Replace a few more uses of deprecated Status / StatusValue methods 2024-08-22 19:34:51 +00:00
TransformHandler.php REST: Mark TransformHandler as not needing write access 2024-06-15 02:58:36 -04:00
UpdateHandler.php Add namespace to includes/api classes 2024-09-25 19:31:14 +00:00