wiki.techinc.nl/includes/Rest
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
..
BasicAccess Merge "Rest: Add missing documentation to class properties" 2024-09-12 23:17:43 +00:00
Handler rest: Return a 400 for invalid render IDs 2025-02-04 14:54:50 +00:00
HeaderParser Merge "Use const keyword for constant list of strings or ints" 2024-09-13 18:08:57 +00:00
Hook
i18n rest: Return a 400 for invalid render IDs 2025-02-04 14:54:50 +00:00
Module REST: Introduce discovery endpoint 2024-09-20 17:02:59 +00:00
PathTemplateMatcher Rest: Add missing documentation to class properties 2024-09-07 21:49:56 +02:00
Reporter
Validator Hard-deprecate getBodyValidator 2024-07-16 13:06:01 +00:00
ConditionalHeaderUtil.php Rest: Add missing documentation to class properties 2024-09-07 21:49:56 +02:00
content.v1.json REST: validate JSON in tests 2024-09-20 15:42:32 +00:00
CopyableStreamInterface.php
coreDevelopmentRoutes.json REST: Introduce discovery endpoint 2024-09-20 17:02:59 +00:00
coreRoutes.json Add temporary account case for page history count 2024-07-09 05:12:11 -07:00
CorsUtils.php Remove meaningless @var documentation from constants 2024-10-09 09:33:12 +02:00
EntryPoint.php Stop using heavy Language object when not needed 2024-10-16 21:34:52 +02:00
Handler.php REST: make http method available during response schema generation 2024-11-07 19:06:59 +00:00
HeaderContainer.php Rest: Add missing documentation to class properties 2024-09-07 21:49:56 +02:00
HttpException.php
JsonEncodingException.php
LocalizedHttpException.php
RedirectException.php
RequestBase.php rest: add default null to nullable typed prop 2024-04-02 14:36:12 +01:00
RequestData.php Rest: Add missing documentation to class properties 2024-09-07 21:49:56 +02:00
RequestFromGlobals.php Rest: Add missing documentation to class properties 2024-09-07 21:49:56 +02:00
RequestInterface.php REST: Deprecate using "post" as the parameter source 2024-06-25 14:57:58 +02:00
Response.php Introduce Modules into the REST framework 2024-05-08 16:12:30 +02:00
ResponseException.php Introduce Modules into the REST framework 2024-05-08 16:12:30 +02:00
ResponseFactory.php REST: Allow specifying param descriptions as MessageValue objects 2024-10-08 16:42:52 -05:00
ResponseInterface.php
RouteDefinitionException.php REST: allow redirects to be defined without specifying a handler 2024-04-17 18:27:31 +02:00
Router.php Merge "REST: Allow specifying param descriptions as MessageValue objects" 2024-10-15 15:24:56 +00:00
SimpleHandler.php
specs.v0.json REST: Introduce discovery endpoint 2024-09-20 17:02:59 +00:00
Stream.php Rest: Add missing documentation to class properties 2024-09-07 21:49:56 +02:00
StringStream.php Add "implements Stringable" to every class with "function __toString()" 2024-06-13 00:23:39 +00:00
TokenAwareHandlerTrait.php Fix some spelling errors 2024-03-18 20:58:11 +11:00