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

Looking for versionable ancestor may cause failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Servlets Post 2.1.0
    • Servlets
    • None

    Description

      The AbstractSlingPostOperation.findVersionableAncestor method tries to find a versionable ancestor to the node to be modified during the request by repeatedly calling Item.getParent() until the root or a versionable node is reached.

      If the current request does not have access to an ancestor thus visited an AccessDeniedException is thrown by the getParent() method thus failing the POST request early and probably unrelated to any actually requested operation.

      Fix is to catch the AccessDeniedException and assume no versionable ancestor. If the operation then fails, it will fail due to the actual operation failing possibly because an ancestor which should be checked out.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: