Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3765

JCR Event Info should contain NodeType

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • jackrabbit-core

    Description

      This issue is about back porting the features introduced in Oak with OAK-1661 and OAK-1669:

      Code developped for Jackrabbit's Observation often struggle with processing events for deleted Nodes. Processing like for aggregation may depend on the type of the deleted Node. The solution to take a Nodetype filter could be prevented or some reasons.

      Adding the node-type to the Event's Info object would help in this cases. OAK-1661 added node type information for NODE_ADDED and NODE_REMOVED events. We should consider adding this for all event types however. Even property events would contain node type of the node the property is associated with (parent).

      An implication of this is however that we also need to adapt the TCK as this will cause org.apache.jackrabbit.test.api.observation.GetInfoTest to fail, which expects the info map to be generally empty.

      Attachments

        1. JCR-3765.patch
          3 kB
          Michael Dürig

        Issue Links

          Activity

            People

              mduerig Michael Dürig
              mduerig Michael Dürig
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: