tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51799] New: servletContext.getRealPath("/someFolderThatDoesNotExist/") should return null
Date Sat, 10 Sep 2011 23:37:43 GMT
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: mike@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message