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 2001/12/28 12:31:15 UTC
DO NOT REPLY [Bug 5603] New: -
ServletContext.getResourcePaths() returns extra slashes
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5603>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5603
ServletContext.getResourcePaths() returns extra slashes
Summary: ServletContext.getResourcePaths() returns extra slashes
Product: Tomcat 4
Version: 4.0.1 Final
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Minor
Priority: Other
Component: Webapps
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: ivanovss@chat.ru
This may not be really invalid, but annoying.
Supposing that I have the following piece of web context:
/css
/css/dm.css
...here are the results of invoking getResourcePaths() with different arguments:
/css -> /css/dm.css
/css/ -> /css//dm.css
/css// -> /css///dm.css
///css -> ///css/dm.css
///css/// -> ///css////dm.css
It appears that groups of leading and/or trailing slashes are not merged into
just one slash.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>