Return-Path: X-Original-To: apmail-httpd-bugs-archive@www.apache.org Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DCF7B90E4 for ; Mon, 5 Mar 2012 18:06:03 +0000 (UTC) Received: (qmail 42181 invoked by uid 500); 5 Mar 2012 18:06:03 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 42155 invoked by uid 500); 5 Mar 2012 18:06:03 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: "Apache HTTPD Bugs Notification List" List-Id: Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 42148 invoked by uid 99); 5 Mar 2012 18:06:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2012 18:06:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2012 18:06:01 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 4F66C2A9E; Mon, 5 Mar 2012 18:05:40 +0000 (UTC) From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: DO NOT REPLY [Bug 52831] New: mod_rewrite redirect broken with IPv6 literal address Date: Mon, 05 Mar 2012 18:05:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Apache httpd-2 X-Bugzilla-Component: mod_rewrite X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Diego.SantaCruz@spinetix.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@httpd.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=52831 Bug #: 52831 Summary: mod_rewrite redirect broken with IPv6 literal address Product: Apache httpd-2 Version: 2.2.21 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: mod_rewrite AssignedTo: bugs@httpd.apache.org ReportedBy: Diego.SantaCruz@spinetix.com Classification: Unclassified A redirect written using mod_rewrite is broken when the URL uses a literal IPv6 address, the redirect location is missing the square brackets around the IPv6 address. To test set the following two rewrite rules RewriteRule ^/a/ /A/ [R,L] RewriteRule ^/c/ C/ [R,L] Let's say the server's IPv6 address is fd35:299:14bc:0:21d:50ff:fe00:1a, then with http://[fd35:299:14bc:0:21d:50ff:fe00:1a]/a/ the redirect location is http://fd35:299:14bc:0:21d:50ff:fe00:1a/a/ and similar for /c. This issue has been fixed with other mod_alias redirects and mod_proxy but it is still present in mod_rewrite as of 2.2.21. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org