jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig <mdue...@apache.org>
Subject [jr3 microkernel] Move overwrites target node
Date Fri, 25 Nov 2011 12:03:01 GMT


I just discovered that the move operation does not fail when the target 
nodes already exists. Is that expected?

When node 'b' exists already, the following commit will overwrite it 
with node 'a':

   mk.commit("/", ">\"a\" : \"b\"  ", head, "");

In contrast adding a node 'b' in the same situation would fail with a 
message saying that node 'b' exists already.


View raw message