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 2004/02/08 23:07:41 UTC

DO NOT REPLY [Bug 26780] New: - getServletContext().getResource(requestURI) does not return complete resource URL when requesting a welcome-file

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26780>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26780

getServletContext().getResource(requestURI) does not return complete resource URL when requesting a welcome-file

           Summary: getServletContext().getResource(requestURI) does not
                    return complete resource URL when requesting a welcome-
                    file
           Product: Tomcat 5
           Version: 5.0.18
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: paul.wilton@nzqa.govt.nz


If the requestURI has no document string  (eg index.html) such that a
welcome-file-list root document is requested, then the call to:

URL contentURL = getServletContext().getResource(requestURI)

does not return the full welcome-file resource URL (the document/welcome-file is
missing):

jndi:/host/

instead of

jndi:/host/index.html   (where index.html is the welcome file)

Tomcat 4 returned the full URL, Tomcat 5 does not.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org