You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/06/26 02:14:06 UTC

DO NOT REPLY [Bug 10233] New: - https relative redirect thinks it's http

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10233>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10233

https relative redirect thinks it's http

           Summary: https relative redirect thinks it's http
           Product: Tomcat 4
           Version: 4.0.3 Final
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: rnice@fraudscrub.com


1. Call a servlet URL such as: https://secure.fraudscrub.com/frame
2. Servlet does a relative redirect to /test which fails
 because HttpUtils.getRequestURL(req).toString() gives:

http://secure.fraudscrub.com:443/test

in the toAbsolute method in the Catalina HttpResponseBase class. Not sure if
the connector reports the URL incorrectly or what??!?

One can work around this by inventing an absolute redirect scheme but this can 
be inconvenient when one has many sites aimed at the same servlets.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>