DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15322>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15322

UserManagement: multiple runtime instances for the same user

           Summary: UserManagement: multiple runtime instances for the same
                    user
           Product: Jetspeed
           Version: 1.4b2-dev / CVS
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Security
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I tried to write a small Portlet for displaying all users who are currently 
logged in. However, the loggedIn flag was 'false' for all users, also for 
the 'admin' account who was indeed logged in.

I checked the loggedIn attribute and saw that it is of the temporary type. So, 
when all users are fetched from DB using UserManagement's getUsers()-method, 
the loggedIn flag for every user is set to false. 

In other words, when I fetch all users with getUsers() method, a new User 
object will be created for every database row it finds. The first 'admin' 
user object is already in memory, and this query creates a second one. These
two objects are not in sync.

Does anyone have an easy solution for fixing this?

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to