Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6F662D482 for ; Wed, 29 May 2013 13:25:22 +0000 (UTC) Received: (qmail 53110 invoked by uid 500); 29 May 2013 13:25:22 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 52930 invoked by uid 500); 29 May 2013 13:25:21 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 51797 invoked by uid 99); 29 May 2013 13:25:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 May 2013 13:25:20 +0000 Date: Wed, 29 May 2013 13:25:20 +0000 (UTC) From: "James Leigh (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HTTPCLIENT-1351) Fragments Are Lost When Following Redirects MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13669231#comment-13669231 ] James Leigh commented on HTTPCLIENT-1351: ----------------------------------------- Did you consider changing class RedirectLocations extends ArrayList ? public List getRedirectLocations() { return getAttribute(REDIRECT_LOCATIONS, List.class); } James > 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-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: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org