Re: Default servlet url mapping issue

2009-05-20 Thread Tim Funk
No spec violation - the default servlet only use getServletPath() to figure out what to get. By using a url pattern other than / - the url is actually split between getServletPath and getPathInfo. (and default servlet barfs) The simple workaround is to use a filter mapped to /resources/css/* w

Re: Default servlet url mapping issue

2009-05-20 Thread Viktoras Agejevas
Thank you Chuck, will definitely try it. On Wed, May 20, 2009 at 5:24 PM, Caldarale, Charles R wrote: >> From: Caldarale, Charles R >> Subject: RE: Default servlet url mapping issue >> >> The DefaultServlet does not currently support any other >> than /.  There&

RE: Default servlet url mapping issue

2009-05-20 Thread Caldarale, Charles R
> From: Caldarale, Charles R > Subject: RE: Default servlet url mapping issue > > The DefaultServlet does not currently support any other > than /. There's a fairly simple change which seems to allow any > arbitrary pattern, which you might want to try. It will take m

Re: Default servlet url mapping issue

2009-05-20 Thread Viktoras Agejevas
Thank you for the answers, I'll have to figure something out. And I'm taking back my words about spec violation :) Viktoras On Wed, May 20, 2009 at 4:46 PM, Caldarale, Charles R wrote: > The DefaultServlet does not currently support any other than /. >  There's a fairly simple change which se

RE: Default servlet url mapping issue

2009-05-20 Thread Caldarale, Charles R
> From: Viktoras Agejevas [mailto:v.ageje...@gmail.com] > Subject: Default servlet url mapping issue > > > default > /resources/css/* > The DefaultServlet does not currently support any other than /. There's a fairly simple change which seems to allow any arbitrary pattern, whic

Re: Default servlet url mapping issue

2009-05-20 Thread David Smith
I don't see that either and I've read it a couple of times. Seems like this is just a limitation of the default servlet. --David Serge Fonville wrote: > Just out of interest, but where, how and why does it violate the spec? > > On Wed, May 20, 2009 at 3:33 PM, Mark Thomas wrote: > >> Viktora

Re: Default servlet url mapping issue

2009-05-20 Thread Viktoras Agejevas
On Wed, May 20, 2009 at 4:38 PM, Serge Fonville wrote: > Just out of interest, but where, how and why does it violate the spec? "The container will recursively try to match the longest path-prefix." So as I understand all requests /resources/* should be directed to default servlet (ant they proba

Re: Default servlet url mapping issue

2009-05-20 Thread Serge Fonville
Just out of interest, but where, how and why does it violate the spec? On Wed, May 20, 2009 at 3:33 PM, Mark Thomas wrote: > Viktoras Agejevas wrote: >> Hi, >> >> I have a weird default servlet url mapping issue >> (Tomcat 6.0.18 with fully default configuration). >> >> Here's my web.xml configur

Re: Default servlet url mapping issue

2009-05-20 Thread Mark Thomas
Viktoras Agejevas wrote: > Hi, > > I have a weird default servlet url mapping issue > (Tomcat 6.0.18 with fully default configuration). > > Here's my web.xml configuration: > > > > AnyServlet > /* > > > default > /resources/css/* > > > > 1. If I request http://loca

Re: Default servlet url mapping issue

2009-05-20 Thread Serge Fonville
Have you tried a different order? On Wed, May 20, 2009 at 3:17 PM, Viktoras Agejevas wrote: > Hi, > > I have a weird default servlet url mapping issue > (Tomcat 6.0.18 with fully default configuration). > > Here's my web.xml configuration: > > > >      AnyServlet >      /* > > >      default

Re: Default servlet doesn't encode URI on redirect?

2008-06-19 Thread Mark Thomas
Benoit Maisonny wrote: Sorry, not always easy to keep a thread with the huge traffic on this list. Christopher Schultz wrote: Benoit, Benoit Maisonny wrote: | Christopher Schultz wrote: |> |> Benoit, |> |> Benoit Maisonny wrote: |> | I suspect someone forgot to encode the URI in the Location:

Re: Default servlet doesn't encode URI on redirect?

2008-06-10 Thread Benoit Maisonny
Sorry, not always easy to keep a thread with the huge traffic on this list. Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Benoit, Benoit Maisonny wrote: | Christopher Schultz wrote: |> |> Benoit, |> |> Benoit Maisonny wrote: |> | I suspect someone forgot to encode th

Re: Default servlet doesn't encode URI on redirect?

2008-04-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Benoit, Benoit Maisonny wrote: | Christopher Schultz wrote: |> |> Benoit, |> |> Benoit Maisonny wrote: |> | I suspect someone forgot to encode the URI in the Location: HTTP header |> | on the 302 response, but maybe there is something missing in our

Re: Default servlet doesn't encode URI on redirect?

2008-04-25 Thread Benoit Maisonny
Christopher Schultz wrote: Benoit, Benoit Maisonny wrote: | I suspect someone forgot to encode the URI in the Location: HTTP header | on the 302 response, but maybe there is something missing in our | configuration? What is the default character set of the running JVM? UTF-8, according to ja

Re: Default servlet doesn't encode URI on redirect?

2008-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Benoit, Benoit Maisonny wrote: | I suspect someone forgot to encode the URI in the Location: HTTP header | on the 302 response, but maybe there is something missing in our | configuration? What is the default character set of the running JVM? - -ch

RE: Default servlet

2006-05-09 Thread Tim Lucia
Mark is right (of course)... my bad. -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 10:14 PM To: Tomcat Users List Subject: Re: Default servlet Tim Lucia wrote: > Look in conf/web.xml -- it is commented out by default. Not it isn

Re: Default servlet

2006-05-08 Thread Mark Thomas
Tim Lucia wrote: > Look in conf/web.xml -- it is commented out by default. Not it isn't. The default servlet is enabled by default. > It is widely > considered evil to use the default servlet. At a minimum, it poses security > risks. Again, no. The default servlet is not considered evil. You are

Re: Default servlet

2006-05-08 Thread Tim Funk
The default servlet already is mapped to / so your mapping below is not needed. Tomcat's default servlet is defined in $CATALINA_HOME/conf/web.xml -Tim Dmitry S. Kravchenko wrote: Hi! How can I configure existance of default servlet? This servlet, as I can see, allows me to use following

RE: Default servlet

2006-05-08 Thread Tim Lucia
Look in conf/web.xml -- it is commented out by default. It is widely considered evil to use the default servlet. At a minimum, it poses security risks. Tim -Original Message- From: Dmitry S. Kravchenko [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 11:23 AM To: users@tomcat.apac