tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55837] ServletContext.getRealPath() returns null
Date Tue, 03 Dec 2013 14:51:17 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=55837

oschina.net <oschina.net@gmail.com> changed:

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

--- Comment #2 from oschina.net <oschina.net@gmail.com> ---
(In reply to Chuck Caldarale from comment #1)
> (In reply to oschina.net from comment #0)
> > if no file or folder named '/test' exist in webroot 
> > then path return null
> 
> The container is under no obligation to return anything other than null for
> getRealPath().  Read the doc for the API:
> 
> "This method returns null if the servlet container cannot translate the
> virtual path to a real path for any reason (such as when the content is
> being made available from a .war archive)."

but in same condition´╝îtomcat 7 & 8 return different value (not .war archive)

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


Mime
View raw message