tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5372] New: - request.getScheme() always return "http", even if overridden manually in server.xml
Date Wed, 12 Dec 2001 02:31:07 GMT
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=5372>.
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=5372

request.getScheme() always return "http", even if overridden manually in server.xml

           Summary: request.getScheme() always return "http", even if
                    overridden manually in server.xml
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: WARP Connector
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: ladamski@yahoo.com


I've been trying to get Tomcat redirection working via mod_webapp and SSL,
without any luck.  It always forces a redirect to http://<server>:443/<path>.

The root of the problem appears to be due to the fact that request.getScheme()
always returns "http", even if the request is an https request and I have
specified scheme="https" in my Connector options.

eg:
    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
     port="8008" minProcessors="5" maxProcessors="75"
     enableLookups="true"
     acceptCount="10" scheme="https" secure="true" redirectPort="443"       
debug="99"/>

Please note this bug appears to have been around for some 18 months now, in
Tomcat 3.X as well as 4.X.  I saw references to this problem in mailing lists
dating back to April of 2000, and there was this bug filed in November:
http://w4.metronet.com/~wjm/tomcat/2000/Nov/msg00645.html

Given this breaks most Tomcat/Apache+SSL implementations, I think this is a
significant bug.  Thanks,
  Lucas.

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message