wiki.techinc.nl/tests
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
..
api-testing Merge "REST: Add items wrapper for restbase compat to some response bodies" 2024-10-21 18:40:15 +00:00
common SECURITY: Message: Don’t call is_callable() on strings 2024-10-26 21:41:52 +00:00
jest mediawiki.special.block: "Editing their own talk page" is inverted 2024-10-21 09:42:47 -07:00
parser PaserTestRunner: Avoid json_decode deprecation warning 2024-12-26 23:49:11 +00:00
phan Add @phan-mandatory-param for function name arguments 2024-09-20 16:23:17 +00:00
phpunit rest: Return a 400 for invalid render IDs 2025-02-04 14:54:50 +00:00
qunit mw.jqueryMsg: Allow complex expressions in parser functions' first param 2024-11-12 14:21:26 +00:00
selenium selenium: Fix 'Page should be editable' 2024-10-08 15:06:39 +00:00
uidesign
.htaccess