[
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
I did not explain myself very well, but in retrospect the scenario was so
unusual it is not worth checking. I have updated the patch and removed that
logic.
Now the patch just modifies DefaultRedirectStrategy to check when the redirect
chain is over (to reset the redirect locations).
> 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: [email protected]
For additional commands, e-mail: [email protected]