fix(libSceHttp): accept transformed HTTP source responses #18270
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18270"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Ondra97 on 2026-11-11T01:21:29Z.
What
The shared host HTTP source client refuses
203 Non-Authoritative Informationas a failed request, even though it carries a successful complete representation from a transforming proxy. This prevents opening such sources and refuses valid complete responses during range completion or an unconditional snapshot fallback.Classify 203 through the existing complete-200 path, as described by RFC 9110 section 15.3.4. This reuses all existing body framing, size, ETag, Last-Modified and trailer checks. The host source API exposes bytes and size, rather than an HTTP status code. Update the existing debt entry's complete-response wording.
Run the existing representation-integrity matrix a second time with every complete 200 fixture sent as 203. The added CTest has a separate working directory, so it can run alongside the normal client test. It covers direct/full snapshots, chunked and close-delimited framing, unconditional fallback, validated later responses, changed/missing validators, malformed responses, failed-read state preservation and retry.
Tested
Windows 11 Pro 26300, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON,ANYPS5_RELINKER_ONLY=OFF,ANYPS5_ENABLE_SPIRV_TOOLS=ON. CPU: AMD Ryzen 9 7900X. RAM: 31.66 GiB usable. GPU: NVIDIA GeForce RTX 4070 Ti SUPER; the selected tests do not exercise it.Base:
baed587febd793dc5a2c49240637e0e6bc222829. Tested fix:57452d7cc5c710e39044369c9d785b24a0be0885.The new
guest_http_client_203test failed against unchanged production code, reporting refused validated responses and failed snapshot opens. It passed after the fix, and the existing client test continued to pass. The tests exercise the actual exported host client through loopback servers.The full production libraries, relinker and selected executables built successfully. All 11 selected CTests passed, zero failed or skipped, each below 30 seconds. This includes both client modes, HTTP API/header/options/diagnostic tests, AvPlayer HTTP and transport tests, patched-module integration, all 407 patched libraries loading and the public-header audit of 407 libraries and 33,863 exports. The Windows test runtime copy was refreshed with the existing
CopyRuntimeFiles.cmakehelper and checked against the rebuilt library.The fix is independent of #18248's empty-source Content-Range parsing. A local, uncommitted composition with its exact head
3cd55326910d752860725e4aa1b8d8dbd3028adbmerged cleanly (tree558021ab2ae9247ab2bd8178d84b4fbbfe790b85) and both client tests passed in parallel, including the empty-source regressions. After restoring this standalone head, both tests passed again. No console, title or external transforming-proxy run was performed.Commands from the source checkout, with the supported toolchain on
PATHand the local full build in../b:Conventions and whitespace checks passed. The overlap tool checked 2,009 open PRs and exited 2 for uncomparable shared files in #9834, #11134 and #14212. Manual exact-head comparison found:
974dfd5adeacd42557add90af180f96d06742d88and #1113435c09d332f3e86b6846ba05a25f662e25e8b7de9add the separate Sony request transport and its targets. They change neitherClient.cppnor these shared-client fixtures, and their debt changes do not touch the shared-host entry updated here.6b4941bfe250142672c12b48b7b6c706b9691452adds blank separators in this debt file and leaves the shared-host entry's content unchanged.No function or semantic overlap, or ordering dependency, was found. The separately comparable #18248 composition is recorded above.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-11T01:32:58Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
57452d7cc5:tools/check_conventions.pypassed;git diff --checkclean.guest_http_client_testsbuilt cleanly.guest_http_client,guest_http_client_203):core/libs/prx/libSceHttp/src/Client.cppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me