Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 59460 invoked from network); 29 Nov 2007 17:59:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Nov 2007 17:59:09 -0000 Received: (qmail 19453 invoked by uid 500); 29 Nov 2007 17:58:54 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 19405 invoked by uid 500); 29 Nov 2007 17:58:54 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 19393 invoked by uid 99); 29 Nov 2007 17:58:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 09:58:54 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 17:59:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 73E1871420E for ; Thu, 29 Nov 2007 09:58:43 -0800 (PST) Message-ID: <21190095.1196359123472.JavaMail.jira@brutus> Date: Thu, 29 Nov 2007 09:58:43 -0800 (PST) From: "Sangjin Lee (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Updated: (GERONIMO-3618) when redirected via status code 30x, the original query is incorrectly appended to the location In-Reply-To: <33288397.1195607023250.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-3618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sangjin Lee updated GERONIMO-3618: ---------------------------------- Attachment: patch.zip a more complete fix > when redirected via status code 30x, the original query is incorrectly appended to the location > ----------------------------------------------------------------------------------------------- > > Key: GERONIMO-3618 > URL: https://issues.apache.org/jira/browse/GERONIMO-3618 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: AsyncHttpClient > Affects Versions: 1.x > Reporter: Sangjin Lee > Attachments: HttpIoHandler.patch, patch.zip > > > If you're redirected via status code 30x (302, 301, ...), the code that handles following redirects (HttpIoHandler.messageRecieved()) tries to append the original query from the first request to the URL obtained from the Location header of the response. This is incorrect per HTTP specification. The spec says the value of the Location header is an absoluteURI which is a full URL that includes the proper query if any: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30. The query from the original request should not be part of the second URL. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.