You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Justin Edelson (Closed) (JIRA)" <ji...@apache.org> on 2011/11/15 17:03:00 UTC

[jira] [Closed] (SLING-2067) AuthorizablePrivilegesInfo throws NPE when used in a script that is being rendered for the anonymous user

     [ https://issues.apache.org/jira/browse/SLING-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Edelson closed SLING-2067.
---------------------------------

    
> 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.2.0
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira