Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-2067

AuthorizablePrivilegesInfo throws NPE when used in a script that is being rendered for the anonymous user

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JCR Jackrabbit User Manager 2.1.0
    • JCR
    • None

    Description

      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.

      Attachments

        Activity

          People

            enorman Eric Norman
            enorman Eric Norman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: