You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Roland Kofler <ro...@systemone.at> on 2006/11/07 22:48:36 UTC

node unlock causes other nodes path to change

in some for me not very clear circumstances the unlocking of a node 
provokes a change of the path of some other node.

Not able to reproduce it yet fully as a jackrabbit testcase, so here 
some pseudocode:

 Page page = PageFactory.createNewPage(session, title0);
 Page page1 = PageFactory.createNewPage(session, title1);
   
* page.getJcrNode().unlock(); *
// after that page1.getJcrNode().getPath() is "/" !!!!

if i save the page before unlock even worse, the paths are equal.
Thats good for quantum nodes ;-) but bad in solid jcr behavior.

So for now I'm going to sleep and will isolate the defect further 
tomorrow, but I hope for some feedback if you have any clue what might 
been going on.

thanks, and more tomorrow ... hopefully

roland


Re: node unlock causes other nodes path to change

Posted by Roland Kofler <ro...@systemone.at>.
forgot to say: with  jackrabbit 1.0.1 it works! but not with 1.1
so I'm pretty sure the bug is in the rabbit 1.1 code.

Roland Kofler wrote:
> in some for me not very clear circumstances the unlocking of a node 
> provokes a change of the path of some other node.
>
> Not able to reproduce it yet fully as a jackrabbit testcase, so here 
> some pseudocode:
>
> Page page = PageFactory.createNewPage(session, title0);
> Page page1 = PageFactory.createNewPage(session, title1);
>   * page.getJcrNode().unlock(); *
> // after that page1.getJcrNode().getPath() is "/" !!!!
>
> if i save the page before unlock even worse, the paths are equal.
> Thats good for quantum nodes ;-) but bad in solid jcr behavior.
>
> So for now I'm going to sleep and will isolate the defect further 
> tomorrow, but I hope for some feedback if you have any clue what might 
> been going on.
>
> thanks, and more tomorrow ... hopefully
>
> roland
>
>


Re: node unlock causes other nodes path to change

Posted by Tobias Bocanegra <to...@day.com>.
hi roland,
it would be good, if you can provide a simple test-case that
illustrates your findings and file a jira issue.

thanks.
regards, toby

On 11/7/06, Roland Kofler <ro...@systemone.at> wrote:
> in some for me not very clear circumstances the unlocking of a node
> provokes a change of the path of some other node.
>
> Not able to reproduce it yet fully as a jackrabbit testcase, so here
> some pseudocode:
>
>  Page page = PageFactory.createNewPage(session, title0);
>  Page page1 = PageFactory.createNewPage(session, title1);
>
> * page.getJcrNode().unlock(); *
> // after that page1.getJcrNode().getPath() is "/" !!!!
>
> if i save the page before unlock even worse, the paths are equal.
> Thats good for quantum nodes ;-) but bad in solid jcr behavior.
>
> So for now I'm going to sleep and will isolate the defect further
> tomorrow, but I hope for some feedback if you have any clue what might
> been going on.
>
> thanks, and more tomorrow ... hopefully
>
> roland
>
>


-- 
-----------------------------------------< tobias.bocanegra@day.com >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---