wiki.techinc.nl/tests/phpunit/integration/includes
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
..
block Use real type hints for services etc. in includes/block/ 2024-07-31 08:54:31 +00:00
cache Namespace includes/cache 2024-02-20 10:28:03 -05:00
CommentFormatter Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
composer Test checkComposerLockUpToDate.php 2024-08-29 20:18:39 +00:00
context Move Language and friends into Language namespace 2024-08-10 13:36:30 +02:00
db Merge "rdbms: clear replica snapshots in (begin|commit|rollback)PrimaryChanges()" 2024-10-22 15:25:44 +00:00
diff tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
editpage/Constraint tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
export tests: Use overrideConfig(Value|Values) where needed 2022-07-12 14:40:46 +01:00
filerepo Add namespace to remaining parts of Wikimedia\ObjectCache 2024-09-27 16:19:10 -04:00
Html Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
HTMLForm tests: Use ::class for class name resolution 2024-09-20 21:19:22 +02:00
http tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
language language: Widen @covers tags in phpunit tests 2024-06-25 18:51:54 +00:00
libs FileRepo: Add support for the new Shellbox large file feature 2024-10-29 02:50:07 +00:00
logging Tests: Replace "db" with getDb method 2024-06-30 20:24:06 +01:00
mail mail: Improve docs, fix file headers, widen @covers 2024-05-10 19:48:43 +01:00
page Replace uses of deprecated ChangeTags static methods 2024-10-16 13:30:12 -04:00
parser Merge "Use statslib for metrics emitted by HtmlInputTransformHelper, HtmlToContentTransform" 2024-10-17 23:46:56 +00:00
Permissions Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
poolcounter Add missing PHPDocs to complicated PoolCounterWorkTest 2024-08-15 11:59:53 +02:00
RenameUser Add integration test for RenameuserSQL 2023-11-15 09:23:06 +11:00
ResourceLoader ForeignResourceManager: Write CDX file to disk 2024-08-08 14:51:01 +02:00
Rest/Handler rest: Return a 400 for invalid render IDs 2025-02-04 14:54:50 +00:00
revisionlist Tests: Replace "db" with getDb method 2024-06-30 20:24:06 +01:00
search tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
specials Change more uses of getDBLoadBalancerFactory() to getConnectionProvider() 2024-01-23 16:34:45 +01:00
Storage Replace uses of deprecated ChangeTags static methods 2024-10-16 13:30:12 -04:00
StubObject Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
user TempAccounts: Set fake timestamps for TempUserCreatorTest 2025-01-01 03:01:07 +00:00
utils Add namespace and deprecation alias to FileBackend 2024-05-19 22:35:58 +03:30
watchlist Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
ExtensionJsonTestBase.php Add namespace to includes/api classes 2024-09-25 19:31:14 +00:00
ExtensionServicesTestBase.php tests: Check that extension service getter methods exist 2023-06-20 10:37:12 +02:00
MediaWikiEntryPointTest.php tests: Use namespaced classes (2) 2024-06-13 23:21:02 +02:00