Details
-
Bug
-
Resolution: Done
-
Major
-
3.2.0.Final, 3.3.0.Final
-
None
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())