You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "James Leigh (JIRA)" <ji...@apache.org> on 2013/05/28 19:23:19 UTC

[jira] [Updated] (HTTPCLIENT-1359) Repeated Requests Using the Same Context Fail If They Redirect

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Leigh updated HTTPCLIENT-1359:
------------------------------------

    Attachment: HTTPCLIENT-1359.patch

The attached patch resets the redirect locations when a redirect response is received that is not in response to the previous redirect received. In other words, when the redirect chain is broken, the list of blocked locations is reset.
                
> Repeated Requests Using the Same Context Fail If They Redirect
> --------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1359
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1359
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.3 Beta1
>            Reporter: James Leigh
>              Labels: patch
>             Fix For: 4.3 Beta2
>
>         Attachments: HTTPCLIENT-1359.patch
>
>
> If the same request (or redirects to the same location) is executed twice with the same context, an exception is throw if the request redirects, follow redirects is enabled, and circular redirects are disabled.
> I would expect that circular redirects with only block redirects that potentially may result in an infinite loop, not block requests to locations that have already been requested (via a redirect).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org