2 Sep 2008 10:36
Created: (JCR-1728) Observation logs error when a node is moved in place
Marcel Reutegger (JIRA <jira <at> apache.org>
2008-09-02 08:36:44 GMT
2008-09-02 08:36:44 GMT
Observation logs error when a node is moved in place
----------------------------------------------------
Key: JCR-1728
URL: https://issues.apache.org/jira/browse/JCR-1728
Project: Jackrabbit
Issue Type: Bug
Components: jackrabbit-core
Affects Versions: 1.4
Reporter: Marcel Reutegger
Priority: Minor
An error message is written to the log when the following sequence of operations is executed:
- create node 'parent'
- create node 'child' as a child of 'parent'
- save
- create node 'tmp'
- move 'child' under 'tmp'
- remove 'parent'
- move 'tmp' to former path of 'parent'
The log will say: EventStateCollection: Unable to calculate old path of moved node
This is because the zombie path of 'child' is equal to the new path after the move. The EventStateCollection
detects a new parentId assigned to 'child' and expects a new path that is different from the zombie path.
The above case however shows that there is a use case where the paths are equal and events should be generated.
RSS Feed