You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Julien Viet <ju...@jboss.com> on 2006/10/13 17:43:53 UTC

Refresh bug or normal behavior ?

with jackrabbit 1.0 :

Session session = repo.login();
Node root = session.getRootNode();
root.addNode("a").addNode("c");
root.addNode("b");
session.save();

// *************

Session session = repo.login();
session.move("/a/c", "/b/c");
Node a = session.getRoot().get("a");
a.refresh(false);
assertNotNull(a.get("c"));
assertNotNull(b.get("c"));

so it looks like I get an inconsistent state on that partial refresh,  
I consider it as a bug but maybe I am wrong.

session.save() will fail though :-)

Julien Viet
JBoss Portal Project Lead
Red Hat Inc.