https://bz.apache.org/bugzilla/show_bug.cgi?id=62851

            Bug ID: 62851
           Summary: Forward to relative path using Dispatcherservlet does
                    results 404
           Product: Tomcat 8
           Version: 8.0.x-trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: manishks...@gmail.com
  Target Milestone: ----

Created attachment 36209
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36209&action=edit
Sample code to reproduce

Forwarding requests to relative path earlier worked with Tomcat-8.0.43.
After upgrading to recent Tomcat versions the forwarding leads to 404 NOT FOUND
error.

```RequestDispatcher rd = request.getRequestDispatcher("../../main");
   rd.forward(request, response);```

On investigation, it was found that Tomcat changed behavior with this commit
Tomcat upgraded behavior to return non-normalized requestURI in
ApplicationDispatcher.
https://github.com/apache/tomcat80/commit/21f57c23780950fcf838ffe9a0fba17cc5247691#diff-8b91a9296e19012bf6be4bdf975fab0dR499

Attaching sample application for reproducing the scenario. Can someone look
into it?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to