Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-5105

withIncludeAncestorsRemove should support **

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.13
    • Fix Version/s: 1.5.14, 1.6.0
    • Component/s: jcr
    • Labels:
      None

      Description

      At the moment withIncludeAncestorsRemove is defined to only add !deep filters for all known parents. However, if you use ** you can't know all parents beforehand. So for those glob paths, besides the known parents, we should add the actual, full glob path (for NODE_REMOVED only that is) to the condition (using the trick to not add deleteSubtree which otherwise filters out subtree deletion).

      As a result you get different events based on the glob path:

      • for all known parents you get an event if one of those parents get removed
      • if you have a glob path registered, then you get an event for all matching paths should a parent of those nodes get deleted

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stefanegli Stefan Egli
                Reporter:
                stefanegli Stefan Egli
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: