https://issues.apache.org/bugzilla/show_bug.cgi?id=51972
Bug #: 51972
Summary: sendRedirect does not support protocol relative URLs
Product: Tomcat 7
Version: 7.0.22
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
The following URL is a protocol relative URL:
"//server.com:8080/foo/bar/kala.html"
where as this is server relative: "/foo/bar/kala.html"
org/apache/catalina/connector/Response.java breaks on protocol relative URLs in
that toAbsolute(String) expects everything that begins with a '/' to be server
relative. toAbsolute adds the protocol, server and port to the URL, resulting
in URLs like http://foo.com:80//server.com:8080/foo/bar/kala.html (instead of
the correct http://server.com:8080/foo/bar/kala.html)
--
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: [email protected]
For additional commands, e-mail: [email protected]