wiki.techinc.nl/includes/Rest/Handler/Helper
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
..
HtmlInputTransformHelper.php rest: Return a 400 for invalid render IDs 2025-02-04 14:54:50 +00:00
HtmlMessageOutputHelper.php Move Language and friends into Language namespace 2024-08-10 13:36:30 +02:00
HtmlOutputHelper.php Deprecate Html*Helper::init() 2024-07-19 15:03:37 +00:00
HtmlOutputRendererHelper.php Namespace all remaining classes in includes/parser 2024-10-15 23:54:32 +01:00
PageContentHelper.php Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
PageRedirectHelper.php Intercept self-redirects triggered by virtual file description pages 2023-12-19 09:20:44 +01:00
PageRestHelperFactory.php Use statslib for metrics emitted by HtmlInputTransformHelper, HtmlToContentTransform 2024-10-17 21:28:04 +02:00
ParsoidFormatHelper.php Revert "Revert "Remove unused class_alias deprecated in MW 1.40"" 2023-09-29 13:08:50 +02:00
RestAuthorizeTrait.php REST: Introduce trait for handling Status objects 2024-03-12 14:48:33 +01:00
RestStatusTrait.php Use StatusValue::getMessages() instead of deprecated methods 2024-05-18 14:45:54 +00:00
RevisionContentHelper.php Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00