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

PrivilegesInfo.canDelete(..) returns wrong value for children of the root node

    XMLWordPrintableJSON

Details

    Description

      When calling the org.apache.sling.jcr.jackrabbit.accessmanager.PrivilegesInfo.canDelete(session, absPath) for a path with only one segment (i.e. a child of root), the value returned
      is always false even if the current user does have permission to delete the node. It fails because the calculated parent path in this scenario resolves to an empty string instead of "/".

      The attached patch fixes this edge condition.

      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: