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 47177] New: mod_proxy rewrites incorrectly IPv6 literal addresses
Date Sat, 09 May 2009 13:48:21 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47177

           Summary: mod_proxy rewrites incorrectly IPv6 literal addresses
           Product: Apache httpd-2
           Version: 2.2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy_http
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: cgbraschi@gmail.com


mod_proxy rewrites a received request of 
GET
http://[2001:4860:a005::84]/search?q=cache:KD9mYbWwEgkJ:www.apache.org/+apache&cd=1&hl=en&ct=clnk
HTTP/1.1
Host: [2001:4860:a005::84]

into 

GET /search?q=cache:KD9mYbWwEgkJ:www.apache.org/+apache&cd=1&hl=en&ct=clnk
HTTP/1.1
Host: 2001:4860:a005::84

Which is incorrect, loosely according to RFC 3986 (for URI syntax),
(http://tools.ietf.org/html/rfc3986), that says "A host identified by an
Internet Protocol literal address, version 6 [RFC3513] or later, is
distinguished by enclosing the IP literal within square brackets ("[" and
"]")".

The right way to do it would be to use
GET /search?q=cache:KD9mYbWwEgkJ:www.apache.org/+apache&cd=1&hl=en&ct=clnk
HTTP/1.1
Host: [2001:4860:a005::84]

This behaviour can be worked around by using "ProxyPreserveHost On", but that
should be the default behaviours. 

This behaviour leads to infinite redirection in servers that detect the error
and redirect to http://[2001:4860:a005::84]/search... (like Google Web Server
when used for caching)

-- 
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