You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Elad Dotan <el...@gmail.com> on 2010/07/20 12:11:19 UTC

Apache Tomcat/5.5.20

 Hi,

1. OS version Solaris 10 (intel)
2. Apache Tomcat/5.5.20


*I'm using my tomcat  for OTA... *
*for example: http://wap.aaa.com/elad*
**
*I would my users to be able to also enter "elad" in uppercase "ELAD" (
http://wap.aaa.com/ELAD) and to be able to reach the page.*
*is it possible to configure the tomcat to ignore case senstivity?*
**
*Regards,*
**
*Elad.*

Re: Apache Tomcat/5.5.20

Posted by Konstantin Kolinko <kn...@gmail.com>.
2010/7/20 André Warnier <aw...@ice-sa.com>:
> Elad Dotan wrote:
\>>
>> 1. OS version Solaris 10 (intel)
>> 2. Apache Tomcat/5.5.20
>>
>>
>
> I believe yes, on an application-by-application base, see
> http://tomcat.apache.org/tomcat-5.5-doc/config/context.html#Common_Attributes
> "caseSensitive".
> But read the remark in that box.
>
> What is not so clear to me, is whether this applies even for the upper
> application level (here elad/ELAD). In other words, if you put this in the
> Context for the "elad" application, does Tomcat then know to direct requests
> to "ELAD" to that same application ?
>

That "caseSensitive" attribute in Context is essentially useless. It
does not make a web-application case-insensitive per se, unless your
OS is case-insensitive. It just removes a security check that compares
requested URL and canonical path of a file.

In Tomcat 7 it is removed.

> Basically, I would say that it is not a good idea anyway, because it may
> still bypass some security features of the server, and may make things
> confusing anyway.
>
> It would probably be better to create a dummy webapps/ELAD application,
> which does nothing else but send a redirect response to the browser, to the
> real webapps/elad application.
> Maybe you can use this filter for that purpose :
> http://www.tuckey.org/urlrewrite/
>

Using a filter is the way to go. You can write it yourself, or use urlrewrite.



Best regards,
Konstantin Kolinko

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


Re: Apache Tomcat/5.5.20

Posted by André Warnier <aw...@ice-sa.com>.
Elad Dotan wrote:
>  Hi,
> 
> 1. OS version Solaris 10 (intel)
> 2. Apache Tomcat/5.5.20
> 
> 
> *I'm using my tomcat  for OTA... *
> *for example: http://wap.aaa.com/elad*
> **
> *I would my users to be able to also enter "elad" in uppercase "ELAD" (
> http://wap.aaa.com/ELAD) and to be able to reach the page.*
> *is it possible to configure the tomcat to ignore case senstivity?*
> **
I believe yes, on an application-by-application base, see 
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html#Common_Attributes
"caseSensitive".
But read the remark in that box.

What is not so clear to me, is whether this applies even for the upper application level 
(here elad/ELAD). In other words, if you put this in the Context for the "elad" 
application, does Tomcat then know to direct requests to "ELAD" to that same application ?

Basically, I would say that it is not a good idea anyway, because it may still bypass some 
security features of the server, and may make things confusing anyway.

It would probably be better to create a dummy webapps/ELAD application, which does nothing 
else but send a redirect response to the browser, to the real webapps/elad application.
Maybe you can use this filter for that purpose :
http://www.tuckey.org/urlrewrite/

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


RE: Apache Tomcat/5.5.20

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Elad Dotan [mailto:elad.dotan@gmail.com]
> Subject: Apache Tomcat/5.5.20
> 
> *is it possible to configure the tomcat to ignore case senstivity?*

Not safely (at least not safely on all platforms).  However, if you configure an appropriate filter in the ROOT webapp, you can have it forward or redirect the request to the properly cased URI.  The appropriate filter can be found here:

http://www.tuckey.org/urlrewrite/

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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