HTTPCLIENT-882: Auth state is not correctly updated if a successful NTLM authentication results in a redirect
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@829791 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
eb1205a223
commit
96b8e1d936
|
@ -1,6 +1,11 @@
|
|||
Changes since 4.0
|
||||
-------------------
|
||||
|
||||
* [HTTPCLIENT-882] Auth state is not correctly updated if a successful NTLM
|
||||
authentication results in a redirect. This is a minor bug as HttpClient manages
|
||||
to recover from the problem automatically.
|
||||
Contributed by Oleg Kalnichevski <olegk at apache.org>
|
||||
|
||||
* [HTTPCLIENT-881] Fixed race condition in AbstractClientConnAdapter that makes it
|
||||
possible for an aborted connection to be returned to the pool.
|
||||
Contributed by Tim Boemker <tboemker at elynx.com> and
|
||||
|
|
|
@ -951,6 +951,11 @@ public class DefaultRequestDirector implements RequestDirector {
|
|||
uri.getPort(),
|
||||
uri.getScheme());
|
||||
|
||||
// Unset auth scope
|
||||
targetAuthState.setAuthScope(null);
|
||||
proxyAuthState.setAuthScope(null);
|
||||
|
||||
// Invalidate auth states if redirecting to another host
|
||||
if (!route.getTargetHost().equals(newTarget)) {
|
||||
targetAuthState.invalidate();
|
||||
AuthScheme authScheme = proxyAuthState.getAuthScheme();
|
||||
|
|
Loading…
Reference in New Issue