Project: Tomcat
Bug 55837 ServletContext.getRealPath() returns null
Reported: 2013-12-03 08:03:13 | Status: resolved fixed

[code] String path = servletContext.getRealPath('/test'); if no file or folder named '/test' exist in webroot then path return null but int tomcat 5\6\7, it will return the correct value , ex /data/oschina/webapp/test

Files changed in fix:
java/org/apache/catalina/webresources/DirResourceSet.java java/org/apache/catalina/webresources/EmptyResource.java java/org/apache/catalina/webresources/StandardRoot.java test/org/apache/catalina/webresources/AbstractTestResourceSet.java