You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Eric Norman (JIRA)" <ji...@apache.org> on 2011/05/02 01:13:03 UTC

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

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

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

Posted by "Eric Norman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Norman resolved SLING-2067.
--------------------------------

    Resolution: Fixed

Fixed in revision 1098439.

> 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

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

Posted by "Justin Edelson (Closed) (JIRA)" <ji...@apache.org>.
     [ 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