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 2014/12/03 01:17:24 UTC
[Bug 55837] ServletContext.getRealPath() returns null
https://issues.apache.org/bugzilla/show_bug.cgi?id=55837
--- Comment #10 from Jo Desmet <jo...@yahoo.com> ---
Just tested this in 8.0.3
log.info("Path3: "+request.getRealPath("/")); // Works
log.info("Path4: "+request.getRealPath("\\")); // returns null!!
log.info("Path2: "+request.getRealPath(File.separator));
Second version returns null - however was working fine in Tomcat 7.
Third version works on Unix, fails on Windows (for obvious reasons, but
documenting it as a variation).
Independent of whether it should be fixed or not - I am just adding the comment
for future reference (someone else will stumble on it eventually).
--
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