users@glassfish.java.net

Re: URL Redirects Not Working on v2.1 b60e

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Wed, 04 Feb 2009 10:46:11 -0800

bsevindi',

On 02/04/09 08:11, Jeanfrancois Arcand wrote:
> Salut,
>
> glassfish_at_javadesktop.org wrote:
>> Hello,
>>
>> I have a web application running on glassfish v2.1 b60e. I have
>> disabled cookies and enabled url rewriting in this application. When
>> I request a secure URL, it redirects to login page as normally. After
>> login, however, it does not redirect to the secure url. It just
>> redirects to the root of the web app, appending a jsessionid to the
>> url. I am not sure if this is a bug of my application or glassfish.
>> [Message sent by forum member 'bsevindi' (bsevindi)]
>
> Would you be able to share a test case? It is hard to say if it is a
> regression or not.

You may be seeing the fix for

  https://glassfish.dev.java.net/issues/show_bug.cgi?id=1933

This comment in the code
(org.apache.catalina.authenticator.FormAuthenticator)
summarizes the motivation for the fix:

  // requestURI will be null if the login form is submitted
  // directly, i.e., if there has not been any original request
  // that was stored away before the redirect to the login form was
  // issued. In this case, assume that the original request has been
  // for the context root, and have the welcome page mechanism take
  // care of it

Not sure if this is what you are seeing, but I thought I'd mention it
anyway.


Jan


>
> Thanks
>
> -- Jeanfrancois
>
>>
>> http://forums.java.net/jive/thread.jspa?messageID=330020
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>