[
https://issues.apache.org/jira/browse/HTTPCLIENT-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13669331#comment-13669331
]
Oleg Kalnichevski commented on HTTPCLIENT-1351:
-----------------------------------------------
Source, yes, but not binary
---
[INFO] --- clirr-maven-plugin:2.3:check (default-cli) @ httpclient ---
[INFO] Comparing to version: 4.2
[ERROR] org.apache.http.impl.client.RedirectLocations: Method 'public void
add(java.net.URI)' has been removed
[ERROR] org.apache.http.impl.client.RedirectLocations: Method 'public boolean
contains(java.net.URI)' has been removed
---
Unfortunately there seem to be no way to resolve this problem by simply adding
missing methods. Due to generics erasure 'void add(java.net.URI)' clashes with
'boolean add(Object)'. I like your patch but do not think this improvement is
worth breaking binary incompatibility.
Oleg
> Fragments Are Lost When Following Redirects
> -------------------------------------------
>
> Key: HTTPCLIENT-1351
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1351
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpClient
> Affects Versions: 4.2.5, 4.3 Beta1
> Reporter: James Leigh
> Priority: Minor
> Fix For: 4.3 Beta2
>
> Attachments: HTTP_LOCATION.patch, interpreted-location.patch,
> redirect-list.patch, redirect-locations.patch, revert.patch,
> util-location.patch, util-resolve.patch
>
>
> The current HTTP draft says that when following a redirect with a fragment
> identifier, it should be processed. However, when HttpClient is set to
> following redirect there is no way to recover the last fragment identifier.
> Location = URI-reference
> http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-22#section-7.1.2
> I suggest adding a localContext attribute that contains the last fragment
> identifiers as is done with the last host and last request. The relevant code
> is in org.apache.http.impl.client.DefaultRedirectStrategy.
> Relevant document includes:
> http://hc.apache.org/httpcomponents-client-ga/tutorial/html/httpagent.html#d5e1225
> This issue maybe related to
> https://issues.apache.org/jira/browse/HTTPCLIENT-1286
--
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]