tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Double call to requestInitialized when forwarding for FORM auth
Date Mon, 13 Jul 2015 13:13:30 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Ludovic,

On 7/10/15 2:33 AM, l.penet@senat.fr wrote:
> I have a problem with DeltaSpike Servlet module ( 
> https://deltaspike.apache.org/documentation/servlet.html ) that
> seems to be caused by an incorrect behavior of Tomcat.
> 
> The thread on DS mailiing list :
> 
> http://mail-archives.apache.org/mod_mbox/deltaspike-users/201507.mbox/
%3C559E1F24.40408%40senat.fr%3E

It
> 
looks like you or DeltaSpike are not cleaning-up as the request
transitions from one state to another.

> I am using Tomcat 8.0.23 and it seems that requestInitialized is
> called twice when a forward is performed.

Tomcat doesn't exactly call that method... it sends a notification to
all registered event listeners. If DeltaSpike is surprised that the
request is being initialized, it should be more careful about state
management.

> In my case, this forward is performed because I am using container 
> managed security with auth method set to "FORM" and Tomcat
> redirects to the login page.
> 
> Is this behavior incorrect or should I propose a patch to DS ?

The block of code around FormAuthenticator.java:383 hasn't been
changed since October 2010 (e.g. since before DS's initial release).
Here's the commit log for that change:
http://svn.apache.org/viewvc?view=revision&revision=1024397

This is more likely to be a problem with DeltaSpike, or with your
specific configuration.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVo7l6AAoJEBzwKT+lPKRYP7AQAIiUX8fEeWFV/G5xlfKZa6as
4gkz2qyPKktAEOrN/aWwx0HBVnUnVQRnosd0BSdvd9YFlavI9fodzdw9g+PxO752
pMUlFq462dtTr8VKqNj6qTD/tDfmI8UScv18c84SGEyULXsBQE1N0yMvLTsaKCZn
IY0wEwJXsG+NeMHxW2PtSiuzkNH87Dsz8HPvkBG3NNJ0C+sq54Iq/qASBs72DRKg
faidYzVhUetfYeCQckCp/qlaonwAj0bmIBRS1EhVc3EZ6y31l0b5PGCdn3dv3Dgd
3pFXBZQB7hDyyoQmFO93are1PQUqXOIc6bBDoXU2KcQAI0bYRp+9QFcqaIWHFv/9
MxIudUsR4uMZbqoTY3hndNSk5DIRRkzwqshjnNmyUP43ftrTRZ2/2U+b1fJ0Hlc1
qWwX4Fs++/bfwF0CB3aq+ONj6Ftkdwc+UNWN2815iy2QGp65FhbNbG3RmJlC1itC
O/3W47EXON7Z1LxiZmxYS1Bl93ce6Wox71IFJLllnAGx5VGhLvrQ8rmsbtLXzNWX
sLNhSMvQfkFYp4kL00HIYKWs9tlDd/SpqUbPL+GUYpLqRyeXx+Dj/Y0T9apWdKIp
MWdH/H+unhbmy0qG8INLsyxnmntF3grDX6OBcm7JQQvYn7RZ7xogEgeDWIQgtahQ
vezGFzg+Jf5dm6P49lAE
=CO94
-----END PGP SIGNATURE-----

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


Mime
View raw message