You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Michael Dürig <md...@apache.org> on 2011/11/25 13:03:01 UTC

[jr3 microkernel] Move overwrites target node

Hi,

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.

Michael

Re: [jr3 microkernel] Move overwrites target node

Posted by Michael Dürig <md...@apache.org>.
>> I just discovered that the move operation does not fail when the target
>> nodes already exists. Is that expected?
>
> no :)
>
> fixed in svn r1206201.

Works now. Thanks.
Michael


Re: [jr3 microkernel] Move overwrites target node

Posted by Stefan Guggisberg <st...@apache.org>.
On Fri, Nov 25, 2011 at 1:03 PM, Michael Dürig <md...@apache.org> wrote:
>
> Hi,
>
> I just discovered that the move operation does not fail when the target
> nodes already exists. Is that expected?

no :)

fixed in svn r1206201.

thanks
stefan

>
> 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.
>
> Michael
>