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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to