tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhooshanpan...@aol.com
Subject Re: case (in)sensitive mime-mapping
Date Tue, 02 Sep 2008 18:34:36 GMT
I don't think it is possible, because in tomcat file names are case 
sensitive so foo.doc is not same as foo.Doc (if u try to access foo.doc 
as foo.Doc tomcat will return 404).

I think - however not sure - the reason for this case sensitive 
implemenatation is to get rid of security vulnerability where someone 
might be able to see the source code of a jsp file by accessing it as 
.Jsp or .JSP


-----Original Message-----
From: Joel McKee Cooper <joel@mckooper.com>
To: users@tomcat.apache.org
Sent: Tue, 2 Sep 2008 10:20 pm
Subject: case (in)sensitive mime-mapping










The mime-mappings in web.xml look like:

   <mime-mapping>
       <extension>doc</extension>
       <mime-type>application/msword</mime-type>
   </mime-mapping>

Which works fine if your document is named "foo.doc", but fails
miserably for "foo.Doc", "foo.DOC", etc.  Is there a way to configure
Tomcat so that the extensions are case-insensitive?

Thanks!

-Joel

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org







________________________________________________________________________
You are invited to Get a Free AOL Email ID. - http://webmail.aol.in


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message