dev@glassfish.java.net

Re: Possible bug in servlet

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 06 Jun 2008 09:55:08 +0200

Jan.Luehe_at_Sun.COM wrote:
> A request for
>
> http://localhost:8080/HelloWorldWebApp
>
> will cause a redirect to
>
> http://localhost:8080/HelloWorldWebApp/
>
> which matches your servlet.
>

I still think there may be an issue because the information returned
from HttpServletRequest is inconsistent. Namely, i observe:

     request.getPathInfo() = "/"
   request.getRequestURI() = "/HelloWorldWebApp"
   request.getRequestURL() = "http://localhost:8080/HelloWorldWebApp"

i.e. the latter two should end in a '/' if redirection correctly is
performed.

I presume an internal redirect is performed: I just checked using curl
and no 303 response is returned.

Is the redirection GF specific behavior? Is it possible to switch it off?

Paul.

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109