arturobernalg opened a new pull request, #753:
URL: https://github.com/apache/httpcomponents-core/pull/753

   `compatible(needed, have)` treated a `null` requested state as a wildcard, 
so `pollAvailable()` would hand a stateless lease the first available entry 
regardless of its bound state. A connection carrying another user's state 
(NTLM/Kerberos/TLS client-cert principal) could therefore be reused by a 
request that presented no credentials at all, silently breaking 
`UserTokenHandler`'s documented contract that user-specific resources are never 
shared across users.
   
   `StrictConnPool` and `LaxConnPool` already require an exact state match; 
this aligns `RouteSegmentedConnPool` (`@Experimental`, 
`PoolConcurrencyPolicy.OFFLOCK`) with that semantics. 
`stateCompatibilityNullMatchesAnything` asserted the buggy behavior as 
intentional; renamed to `stateCompatibilityNullOnlyMatchesNull` with the 
assertion inverted. Added two tests: one pinning the fixed behavior directly, 
one pinning `StrictConnPool`/`LaxConnPool` as the reference semantics this 
change aligns with.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to