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 2018/10/24 04:06:27 UTC

[Bug 62851] New: Forward to relative path using Dispatcherservlet does results 404

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: manishks344@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 62851] Forward to relative path using Dispatcherservlet does results 404

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62851

Remy Maucherat <re...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Remy Maucherat <re...@apache.org> ---
This other BZ discusses this (lack of) normalization.

*** This bug has been marked as a duplicate of bug 62150 ***

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