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 2011/11/08 19:59:53 UTC
DO NOT REPLY [Bug 52156] New: ServletContext.getResource(path)
doesn't accept ".." anymore
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: amasson@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 52156] ServletContext.getResource(path) doesn't
accept ".." anymore
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52156
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
OS/Version| |All
--- Comment #1 from Mark Thomas <ma...@apache.org> 2011-11-08 23:31:43 UTC ---
Thanks for the report. This has been fixed in trunk and 7.0.x and will be
included in 7.0.23 onwards.
--
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org