Details
-
Bug
-
Status: Resolved
-
Resolution: Fixed
-
1.4b4-dev / CVS
-
None
-
None
-
Operating System: Windows NT/2K
Platform: PC
-
17734
Description
SecurityCacheImpl caches all existing roles and their associated permissions
when it is first invoked. When assigning an existing role to any user,
SecurityCacheImpl adds that role for the user and then overwites that Role's
permissions with a blank HashMap. This effectively removes all permissions for
that role for every user.
This can be fixed by checking to see if the Role has already been cached in
addRole(username, Role). This check is already done in addRole(Role).