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 2005/02/18 18:05:21 UTC

DO NOT REPLY [Bug 33640] New: - RequestDispatcher.forward forwards to incorrect resource when the request is wrapped with a set servletPath

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=33640>.
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=33640

           Summary: RequestDispatcher.forward forwards to incorrect resource
                    when the request is wrapped with a set servletPath
           Product: Tomcat 5
           Version: 5.5.7
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: mtraum@yahoo.com


If a HttpServletRequestWrapper overrides the getServletPath() method to return
it's own value, a RequestDispatcher.forward will forward to that resource, even
when obtaining the RequestDispatcher with getRequestDispatcher(String). I
believe the servlet spec says that it should forward to the resource specified
in getRequestDispatcher.

This also occurs on the latest Tomcat 4 - should I open a bug there too?

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