AuthorizablePrivilegesInfo throws NPE when used in a script that is being
rendered for the anonymous user
---------------------------------------------------------------------------------------------------------
Key: SLING-2067
URL: https://issues.apache.org/jira/browse/SLING-2067
Project: Sling
Issue Type: Bug
Components: JCR
Affects Versions: JCR Jackrabbit User Manager 2.1.0
Reporter: Eric Norman
Assignee: Eric Norman
Fix For: JCR Jackrabbit User Manager 2.1.2
When the current user is anonymous, the
userManager.getAuthorizable(jcrSession.getUserID()) call returns null.
In the AuthorizablePrivilegesInfo impl,
AuthorizablePrivilegesInfo.canAddGroup(..) and
AuthorizablePrivilegesInfo.canAddUser(..) need a null check for the current
authorizable object before attempting to use it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira