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 32424] New: - Redirecting directiories with missing trailing slash breaks web applications
Date Mon, 29 Nov 2004 10:08:48 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32424>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32424

           Summary: Redirecting directiories with missing trailing slash
                    breaks web applications
           Product: Tomcat 5
           Version: 5.0.28
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: michael@wyraz.de


>From version 5.0.4 to 5.0.5 the File
org/apache/tomcat/util/http/mapper/Mapper.java was changed to redirect requests
which matches a directory but have a missing trailing slash are redirected to
the same url with the slash. This breaks some webapps because the redirect is
also done for urls which are mapped to servlets.

Example:
A Servlet is mapped to /. The user calls /page which is handled by the servlet.
If a direcory named "page" exists, tomcat redirects to /page/. This is fine for
directory indexing but bad for complex applications.

See also:
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/mapper/Mapper.java?r1=1.23&r2=1.24

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message