https://issues.apache.org/bugzilla/show_bug.cgi?id=52156

             Bug #: 52156
           Summary: ServletContext.getResource(path) doesn't accept ".."
                    anymore
           Product: Tomcat 7
           Version: 7.0.22
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: amas...@gmail.com
    Classification: Unclassified


With WAR-packaged webapp,
   getServletContext().getResource("/mydata/../mydata/myfile.txt")
should return the same URL as
   getServletContext().getResource("/mydata/myfile.txt")
but returns NULL instead.

It's ok for folder-based webapp.
It was working in Tomcat 6.0.20.
It looks like Bug 10629 (WARDirContext.java regression?).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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