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

Adapting Node based Resource to PersistableValueMap throws java.security.AccessControlException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JCR Resource 2.0.2
    • JCR Resource 2.0.4
    • JCR
    • None

    Description

      Trying to adapt a JCR Node-based Resource to a PersistableValueMap includes checking for permission to "set_property" on the given node. This check may throw a JCR RepositoryException or a java.security.AccessControlException (if permission is denied). The first exception is caught to not return a map in this case. The second exception should also be caught to prevent it from being forwarded – instead null is also expected to be returned here.

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: