jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julien Viet <jul...@jboss.com>
Subject Refresh bug or normal behavior ?
Date Fri, 13 Oct 2006 15:43:53 GMT
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.




Mime
View raw message