Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1964

Connectors don't get removed properties in changes/delta

    XMLWordPrintable

Details

    Description

      When property has been removed from node and then changes must be saved to external source they are not available in connector's updateDocument(delta) method.

      class org.modeshape.jcr.cache.document.SessionNode.java has following code which returns change list for removed properties:

              public Set<Name> removedPropertyNames() {
                  Set<Name> result = new HashSet<Name>();
                  result.addAll(changedProperties().keySet());
                  return result;
              }
      

      instead of

      result.addAll(changedProperties().keySet()) 
      

      there should be

      result.addAll(removedProperties())
      

      Attachments

        Activity

          People

            hchiorean Horia Chiorean (Inactive)
            dr_nickson_jira Nick K (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: