Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 6.0.1
-
Fix Version/s: 6.1.1
-
Component/s: Security and SSL
-
Labels:None
-
Number of attachments :
Description
When JDBCUserRealm clears the realm caches (see JDBCUserRealm.authenticate() ), it clears only the roles cache (_roles from HashUserRealm). Sinces the user principal is still in the users cache (_users from HashUserRealm), the user principal is not reloaded. The subsequent call to isUserInRole() fails because all the role cache is now empty. A 403 response (User not in required role) is sent to the client browser.
Forgot to add how to reproduce it easily:
-> you get a 403 complaining about the user roles.