You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Juergen Weber <we...@yahoo.com> on 2004/03/13 09:46:07 UTC

Missing case sensivity of getContext()

If on a NT machine (Tomcat 5.0.19)			    
			    
http://localhost:8080/test/

returns a valid directory,

then http://localhost:8080/Test/ returns 404.

OK, sofar.

But

getServletContext().getContext("/Test/");

returns not null.

I think, this might be an error, as the Spec says:

getContext(String)
public ServletContext getContext(java.lang.String
uripath)
Returns a ServletContext object that corresponds to a
specified URL on the server.

Obviously, as the 404 result showed, there is no such
URL.

What do you think? Should I open a bug?

Thanks, J�rgen


__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

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