Skip to content

resolve target port in DefaultUserTokenHandler auth exchange lookup - #939

Merged
ok2c merged 1 commit into
apache:masterfrom
Hsnmohd:user-token-default-port
Nov 14, 2026
Merged

ok2c merged 1 commit into
apache:masterfrom
Hsnmohd:user-token-default-port

Conversation

@Hsnmohd

@Hsnmohd Hsnmohd commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

look up the target auth exchange in DefaultUserTokenHandler with the port resolved the way ProtocolExec has keyed it since HTTPCLIENT-2203, otherwise for a URI without an explicit port the NTLM/SPNEGO principal is never found, the authenticated connection goes back to the pool with a null state, and a later request from another context without credentials is leased that connection and served as the first user (reproduced on the classic and async clients).

@ok2c
ok2c merged commit 12dd233 into apache:master Nov 14, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants