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/09/21 01:02:57 UTC

DO NOT REPLY [Bug 3698] - ServletContext.getRealPath() no longer adds trailing slash to result.

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=3698>.
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=3698

ServletContext.getRealPath() no longer adds trailing slash to result.

craig.mcclanahan@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX



------- Additional Comments From craig.mcclanahan@sun.com  2001-09-20 16:02 -------
The spec for ServletContext.getRealPath() says:

  Returns a String containing the real path for a given virtual path.
  ... The real path will be in a form appropriate to the computer and
  operating system on which the servlet container is running, including
  the appropriate path separators.

It seems to me that the current behavior conforms to this requirement, and that
(in fact) the Tomcat 3.2 behavior is incorrect for some operating systems.