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 2015/04/27 02:15:53 UTC

[Bug 57556] getServletContext().getRealPath("/") returns path not ending with /

https://bz.apache.org/bugzilla/show_bug.cgi?id=57556

Matt <ma...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |---
             Status|RESOLVED                    |REOPENED

--- Comment #5 from Matt <ma...@yahoo.com> ---
Tomcat 6 only returned a path with an ending slash when asking for "/", any
other directory path does not end in a slash. So this is actually breaking
backwards compatibility. In my opinion, what makes the most sense would be for
it to return an ending slash only if the path requested ends in a slash, but
being consistent with previous behavior is a good idea too.

-- 
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