[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220886#comment-13220886
 ] 

Oleg Kalnichevski commented on HTTPCLIENT-1171:
-----------------------------------------------

Tomas,

I added a test case to the 4.1.x branch to test the condition you have 
described (AuthScheme#authenticate() method throws AuthenticationException) and 
was unable to reproduce the defect [1].

There is not much I do unless I manage to reproduce the problem with a 
self-contained test case that does not depend on Windows specific 
functionality. I'll have no other option but to close the issue as CANT 
REPRODUCE.

Oleg 

[1] http://svn.apache.org/viewvc?view=revision&revision=1295938  
                
> Infinite loop if authenticate() method throws AuthenticationException
> ---------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1171
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1171
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>    Affects Versions: 4.1.3, 4.2 Alpha1
>            Reporter: Tomas Ruzicka
>
> - With 4.1.1: an infinite loop is entered if the exception is thrown. 
> Httpclient then keeps sending the request w/o Authentication header in the 
> loop.
> - With 4.2 Alpha1: the same as above *if there is no other scheme available*. 
> So for example, if the server responds:
> WWW-Authenticate: BASIC realm="realmoftheserver"
> WWW-Authenticate: Digest realm="realmoftheserver", stale=false, 
> nonce="cc684f71295dce8113c30617d7b34ddc", qop="auth", algorithm="MD5"
> and the Digest scheme throws AuthenticationException then Basic scheme is 
> used but if the server responds just:
> WWW-Authenticate: Digest realm="realmoftheserver", stale=false, 
> nonce="cc684f71295dce8113c30617d7b34ddc", qop="auth", algorithm="MD5"
> and the Digest scheme throws AuthenticationException then the client enter 
> the loop

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to