Repository navigation
fix(http2): expose auth statuses without matching challenges - #16240
Merged
oneandonlydean merged 2 commits intoNov 5, 2026
Merged
oneandonlydean merged 2 commits into
oneandonlydean merged 2 commits into
Conversation
…e to throw A 401 or 407 with a matching challenge field is a valid response whose console handling is not implemented here, so the new test should not assert that it throws. The cases that pass the status and body through stay. Co-authored-by: JJenkx <31495916+JJenkx@users.noreply.github.com>
This was referenced Nov 5, 2026
Contributor
Author
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.
AI-assisted: yes. |
Collaborator
|
Hi @JJenkx, thanks for the Windows check. I added one small fix-up commit (fd606d4) on your branch: the new libSceHttp2 test no longer asserts that the unsupported authentication challenge throws, since a 401/407 with a matching challenge is a valid response whose console handling isn't implemented here. The pass-through cases for status and body are unchanged. Only GuestHttp2Transport.cpp changed, and the commit credits you as co-author. |
12 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Expose an HTTP 401/407 response when it has no matching authentication challenge field. The transport currently refuses those statuses even when the server sent no
WWW-Authenticate/Proxy-Authenticatefield and no negotiation can be attempted. Track the two fields separately for each header block: 401 withWWW-Authenticate, or 407 withProxy-Authenticate, still refuses with automatic auth enabled. Bare or mismatched-field responses retain their real status, body and content length. Automatic auth remains enabled by default.This is a host transport policy based on RFC 9110 §11.3, not a measured Sony error/validation contract. Challenge negotiation, credentials, auth callbacks and auth-cache behavior remain unimplemented. The debt entry states that limit. No title-specific behavior is introduced.
Tested
Linux x86-64, Ryzen 9 7950X. Pinned main
38fe81a14ab4f25d627af66cf017f53596b2c01e; standalone change8bb5c1aa1fd7faf234d608ce3e1b574c0e52ce8b.guest_http2_auth_statusexercises 31 loopback TLS cases across request versions 1/2/3: bare/mismatched/matching 401/407 fields, auth disabled, informational-header isolation, mixed-case HTTP/1 field names and ordinary 200 responses. It checks real status/body/length and the enabled default.sceHttp2WaitAsyncrefusal. Both show the same loading artwork at25/32s. A preceding metadata-only diagnostic retained the auth refusal and observedprotocol=2 status=401 callback=0 server-challenge=0 proxy-challenge=0. These are live server runs, not controlled server-response comparisons. No gameplay or speed improvement claimed. Kernel settings restored, mounts released, banks/inputs unchanged in both arms.bf80054e7cf794320f656c93f3f299d55f336440.Evidence: reviewed Linux validation archive, SHA256
615599bb22aa70efb1d439500a9fd8744e22c3b4ab38a852efa45ecb2cc55bf7.Overlap: #12305 changes the same HTTP/2 header callback areas for response/trailer serialization. I proposed #12305 first in the coordination comment; author agreement is pending. The dependency below records that proposed order, and I will rebase this fix after it lands. Its exports are not implemented here. The tool's unverified stale comparisons (#11470, #12456, #13486, #14212, #15221) were manually reviewed; none implements this auth policy. Per-branch details and exact heads are in the archive. The async PRs are title-test prerequisites, not source dependencies of this standalone fix.
Checklist
main; no other open PR implements the same functions