Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 62439 invoked from network); 16 Jul 2008 15:23:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jul 2008 15:23:39 -0000 Received: (qmail 35618 invoked by uid 500); 16 Jul 2008 15:23:33 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 35592 invoked by uid 500); 16 Jul 2008 15:23:33 -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 35541 invoked by uid 99); 16 Jul 2008 15:23:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jul 2008 08:23:33 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jul 2008 15:22:48 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D7CCC234C169 for ; Wed, 16 Jul 2008 08:22:42 -0700 (PDT) Message-ID: <1090901152.1216221762882.JavaMail.jira@brutus> Date: Wed, 16 Jul 2008 08:22:42 -0700 (PDT) From: "Dave Clemmer (JIRA)" To: dev@hc.apache.org Subject: [jira] Created: (HTTPCLIENT-787) Redirects with spaces in them are not handled correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Redirects with spaces in them are not handled correctly ------------------------------------------------------- Key: HTTPCLIENT-787 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-787 Project: HttpComponents HttpClient Issue Type: Bug Components: HttpClient Reporter: Dave Clemmer Priority: Minor If a redirect address has spaces in it (yes, I know, the person creating that situation should be beaten, but, alas, that is not an option), they are not converted to %20 before opening, and, hence, fail to open. changing line 107 of DefaultRedirectHandler to String location = locationHeader.getValue().replaceAll (" ", "%20"); seems to fix it. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org