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 9559] New: - welcome file list induced redirect is incorrect
Date Sat, 01 Jun 2002 04:42:00 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=9559>.
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=9559

welcome file list induced redirect is incorrect

           Summary: welcome file list induced redirect is incorrect
           Product: Tomcat 4
           Version: 4.0.3 Final
          Platform: All
        OS/Version: Other
            Status: UNCONFIRMED
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: x@cs.stanford.edu


The following request:

GET /foo HTTP/1.1
Host: localhost

given to a WebApp named foo that forwards all requests unchanged to another
WebApp named bar results in:

HTTP/1.1 302 Moved Temporarily
Content-Type: text/html
Date: Sat, 01 Jun 2002 04:23:38 GMT
Transfer-Encoding: chunked
Location: http://localhost:8180/bar/index.jsp
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)

1 - Note the location is /bar.  But since the user requested /foo, this seems to
be violating the spec, since the spec says that the welcome file ( index.jsp )
should be added to the request.  It also breaks the encapsulation between webapps.

2 - Why is a temporary redirect being specified at all?  I don't see where the
spec says anything about a redirection, or anywhere it mentions that the browser
URL should be updated with the new location.

I'll fix these if someone confirms that these are indeed bugs.

The relevant code is in o.a.c.s.DefaultServlet.java

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