tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 51799] New: servletContext.getRealPath("/someFolderThatDoesNotExist/") should return null
Date Sat, 10 Sep 2011 23:37:43 GMT

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

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 &

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message