[wp-trac] [WordPress Trac] #63502: HTTP 500 in `wp-json/batch` with specific arguments
WordPress Trac
noreply at wordpress.org
Fri May 30 15:43:58 UTC 2025
#63502: HTTP 500 in `wp-json/batch` with specific arguments
-------------------------------------------------+-------------------------
Reporter: bor0 | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 6.9
Component: REST API | Version: 6.8
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests changes- | Focuses:
requested has-test-info |
-------------------------------------------------+-------------------------
Changes (by SirLouen):
* keywords: has-patch needs-testing has-unit-tests => has-patch has-unit-
tests changes-requested has-test-info
Comment:
== Combined Bug Reproduction and Patch Test Report
=== Description
🟠 This report validates that the indicated patch works as expected, but a
little change is provided
Patch tested: https://github.com/WordPress/wordpress-
develop/pull/8850.diff
=== Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.27.5
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 137.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Five 1.2
- MU Plugins: None activated
- Plugins:
* Test Reports 1.2.0
=== Test Reproduction
- Followed instructions in OP
- 🐞 Server error triggered
=== Expected Results
- Server error should be handled
=== Actual Results
1. ✅ Issue resolved with patch.
2. ✅ Unit tests correctly represent the OP specified scenario
=== Additional Notes.
- @bor0 I've reviewed the code, and I think that maybe more errors could
be represented with a little refactor. If you can
[https://core.trac.wordpress.org/attachment/ticket/63502/63502.3.patchreview
this patch] and if you feel that looks good, you can integrate it into
your PR or add the necessary changes.
=== Supplemental Artifacts
Result after the patch
{{{
{"responses":[{"body":{"code":"parse_path_failed","message":"Could not
parse the path.","data":{"status":400}},"status":400,"headers":[]}]}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63502#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list