tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: request.getUserPrincipal() returns null in a ServletRequestListener#requestInitialized in tc-7.0.54
Date Mon, 04 Aug 2014 20:55:38 GMT
Hmm

did you debug in org.apache.catalina.connector.Request#recycle?


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-08-04 22:37 GMT+02:00 Mark Struberg <struberg@yahoo.de>:
> yea exactly. But the user IS authenticated!
> And later in the Filter getUserPrincipal() returns the correct Principal.
> But in the ServletRequestListener (invoked in the same request of course) it is null.
> Either it should always be null, or never!
>
> LieGrue,
> strub
>
>
> On Monday, 4 August 2014, 22:12, Jean-Louis MONTEIRO <jeanouii@gmail.com> wrote:
>
>
>>
>>
>>oups thanks Romain
>>
>>
>>2014-08-04 22:09 GMT+02:00 Romain Manni-Bucau <rmannibucau@gmail.com>:
>>
>>> "Returns a java.security.Principal object containing the name of the
>>> current authenticated user. If the user has not been authenticated,
>>> the method returns null."
>>>
>>>
>>> Romain Manni-Bucau
>>> Twitter: @rmannibucau
>>> Blog: http://rmannibucau.wordpress.com/
>>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>> Github: https://github.com/rmannibucau
>>>
>>>
>>> 2014-08-04 22:04 GMT+02:00 Jean-Louis MONTEIRO <jeanouii@gmail.com>:
>>> > It should return at least always a non null principal AFAIR, isn't it?
>>> >
>>> >
>>> > 2014-08-04 19:33 GMT+02:00 Mark Struberg <struberg@yahoo.de>:
>>> >
>>> >> Hi!
>>> >>
>>> >> I've recently found out that getUserPrincipal() returns null in a
>>> Listener
>>> >> [1].
>>> >> I remember that this used to return the correct Principal in older
>>> >> versions (might be some time already).
>>> >> Also from reading the spec I assumed it should work.
>>> >>
>>> >> Any infos on this?
>>> >>
>>> >> LieGrue,
>>> >> strub
>>> >>
>>> >>
>>> >> [1]
>>> >>
>>> http://svn.apache.org/repos/asf/openwebbeans/trunk/webbeans-tomcat7/src/main/java/org/apache/webbeans/web/tomcat/TomcatSecurityListener.java
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > Jean-Louis
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: dev-help@tomcat.apache.org
>>
>>>
>>>
>>
>>
>>--
>>Jean-Louis
>>
>>
>>

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


Mime
View raw message