https://issues.apache.org/bugzilla/show_bug.cgi?id=51799
Bug #: 51799 Summary: servletContext.getRealPath("/someFolderThatDoesNotExis t/") should return null Product: Tomcat 7 Version: 7.0.21 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Servlet & JSP API AssignedTo: dev@tomcat.apache.org ReportedBy: m...@vorburger.ch Classification: Unclassified Tomcat (v7.0.21 at least) returns the absolute file path where a folder "would have been" for servletContext.getRealPath("/someFolderThatDoesNotExist/"). Jetty (v7.3.0) returns null in such cases (so it only returns resources, or folder, that are actually available in the directory where the expanded WAR is); see also http://dev.eclipse.org/mhonarc/lists/jetty-dev/msg00773.html The Servlet Spec doesn't clearly say either way - what Jetty does seems more logical to me... and is also the assumption made e.g. in BIRT; for more background see https://bugs.eclipse.org/bugs/show_bug.cgi?id=357315 & http://mifosforge.jira.com/browse/MIFOS-5118. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org