webtier@glassfish.java.net

difference between GF and Tomcat handling FORM authentication

From: Dies Koper <diesk_at_fast.au.fujitsu.com>
Date: Tue, 21 Apr 2009 16:30:24 +1000

Hi Jan, Jeanfrancois,

I noticed a difference between Tomcat and GF in how FORM authentication
is handled.

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

In GF, FormAuthenticator#restoreRequest has the following, but
CoyoteRequest#setMethod is empty so the information of the previous
request is not recovered.

        request.setMethod(saved.getMethod());
        request.setQueryString(saved.getQueryString());
        request.setRequestURI(saved.getRequestURI());

Can't we implement restoreRequest and saveRequest like Tomcat does?

Thanks,
Dies