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 2002/05/27 03:52:10 UTC
DO NOT REPLY [Bug 9430] New: -
getResource() doesn't return null for invalid URLs
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=9430>.
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=9430
getResource() doesn't return null for invalid URLs
Summary: getResource() doesn't return null for invalid URLs
Product: Tomcat 3
Version: 3.2.3 Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Servlet
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: jeff@socialchange.net.au
Hi,
>From the Servlet 2.2 javax.servlet.ServletContext javadocs, method:
public java.net.URL getResource(java.lang.String path):
"This method returns null if no resource is mapped to the pathname."
Yet it clearly doesn't, as this JSP demonstrates:
<%= config.getServletContext().getResource("/some/nonexistent/path") %>
This bug is fixed in 3.3.1rc1 and 4.0.1 (at least), but I thought I'd just
record this bug for future generations.
--Jeff
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>