I've just checked it (only reading subjects of new, open, assigned and
resolved bugs), didn't found anything relative...

I'm using 1.4b1.
What is even more weird is that in the original JLogoutUser there's a case
where it uses data.getUser() : if automatic.logout.save is enabled (line 130
: JetspeedSecurity.saveUser((JetspeedUser)data.getUser());)

I'm going to check if this automatic.logout.save really works cause if it
does, then I REALLY don't understand :)

Aurelien

> -----Message d'origine-----
> De : Luta, Raphael (VUN) [mailto:Raphael.Luta@;groupvu.Com]
> Envoy� : vendredi 8 novembre 2002 10:28
> � : 'Jetspeed Users List'
> Objet : RE: data.getUser() is null, not data.getUserFromSession() ...
>
>
> I don't any explanation right now why thid would happen. Have
> you checked Turbine 2 bugzilla for a similar bug ?
>
> > -----Message d'origine-----
> > De : Aurelien Pernoud [mailto:apernoud@;sopragroup.com]
> > Envoy� : vendredi 8 novembre 2002 10:22
> > � : 'Jetspeed Users List'
> > Objet : data.getUser() is null, not data.getUserFromSession() ...
> >
> >
> >
> > Hi there,
> >
> > in my portlets I've always been using the rundata.getUser()
> > method to get
> > the user, but I found a case where data.getUser is null, and
> > data.getUserFromSession() works... I don't get it.
> >
> > It works everywhere in my app except in ... Log Out. In fact
> > I need my own
> > Logout class, and have to test if the user is an admin or
> > not. So here's
> > what I have in my Logout class :
> >
> > public class MyLogOut extends JLogoutUser
> > {
> >   public void doPerform(RunData data) throws Exception
> >   {
> >     if (data.getUser() == null)
> >     {System.out.println("User is null...");return;};
> >
> >     (...)
> >
> >     super.doPerform(data);
> >   }
> > }
> > And I changed the properties file to point to this logout
> > class of course.
> >
> > I always have the print "User is null..." on the console :(
> > I then looked the other functions of rundata, and found that
> > if I used the
> > getUserFromSession() there, then it works and I can test if
> > the user is
> > admin or not.
> >
> > I don't get why I have getUser returning null, only in the
> > log out... And I
> > checked, I'm not doing the Logout of jetspeed before mine :) (the
> > super.doperform(data) is after the test on getUser !)
> >
> > Any suggestions ?
> >
> > Aur�lien Pernoud


--
To unsubscribe, e-mail:   <mailto:jetspeed-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-user-help@;jakarta.apache.org>

Reply via email to