httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@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 GMT
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


Mime
View raw message