users@glassfish.java.net

Re: getUserPrincipal() returns null and isUserInRole() returns false always

From: Dominik Dorn <dominik.dorn_at_gmail.com>
Date: Mon, 28 Dec 2009 21:40:01 +0100

Well I had the problem in Glassfish v3, but
actually it resolved by itself when I removed the file in
domains/domain1/<appname>
and redeployed (not restarted) the App with a new name/context path...
basically it
seems to be a caching problem somehow...



On Mon, Dec 28, 2009 at 9:37 PM, <glassfish_at_javadesktop.org> wrote:

> This problem has been present for a while, in all versions since glassfish
> 2.1 to the very latest 2.1.1.
>
> Checking Sun's web site I saw they have the following patch for this
> problem listed as:
>
> 4022 getUserPrincipal() returns null for Servlet WebServices and
> isUserInRole() returns false always
>
> Is there any workaround for this? or when will this get fixed in the
> community version?
>
> By the way, GF v3 doesn't have this problem.
>
> thanks
>
> JC
> [Message sent by forum member 'jcferrer' (blindacrobat_at_sbcglobal.net)]
>
> http://forums.java.net/jive/thread.jspa?messageID=377844
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>


-- 
Dominik Dorn
http://dominikdorn.com