Bug 19207

Summary: Redirection broken under IPv6
Product: Apache httpd-2 Reporter: Matthew Darwin <matthew>
Component: CoreAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P3    
Version: 2.0.44   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
URL: http://[3ffe:b00:4041:ace0:260:f8ff:fe03:bc9]/resources
Attachments: proposed patch for PR 19207 (build URL from IPv6 literal)

Description Matthew Darwin 2003-04-22 01:26:56 UTC
http://[3ffe:b00:4041:ace0:260:f8ff:fe03:bc9]/resources should redirect to
http://[3ffe:b00:4041:ace0:260:f8ff:fe03:bc9]/resources/  (add slash).

Intstead it seems to redirect to:
http://3ffe:b00:4041:ace0:260:f8ff:fe03:bc9/resources/  (remove square brackets
and add slash).

This, of course, does not resolve.
Comment 1 Jeff Trawick 2003-04-22 11:46:07 UTC
Created attachment 5943 [details]
proposed patch for PR 19207 (build URL from IPv6 literal)
Comment 2 Jeff Trawick 2003-04-22 11:46:35 UTC
Please try the attached patch and report back.

Thanks for your report!
Comment 3 Matthew Darwin 2003-04-22 12:44:34 UTC
Issue is resolved with given patch on Apache/2.0.45.
Comment 4 Jeff Trawick 2003-04-22 14:57:49 UTC
Thanks for the quick feedback.

The fix you tested has been committed to Apache 2.1-dev.  If the fix doesn't 
prove to be problematic to others, I'll propose it for merging into the 
next stable release (e.g., 2.0.46).