Use Node constructor rather than createNode() in registerUser(). createNode()
is currently not prototype-aware, so if it is called on a persistent Node, the new child node may be persisted with a bogus id (!).
This commit is contained in:
parent
68c69d7ba1
commit
1271379eda
1 changed files with 2 additions and 3 deletions
|
@ -973,9 +973,8 @@ public final class Application implements IPathElement, Runnable {
|
|||
return null;
|
||||
}
|
||||
|
||||
unode = users.createNode(uname);
|
||||
unode.setPrototype("user");
|
||||
unode.setDbMapping(userMapping);
|
||||
unode = new Node(uname, "user", nmgr.safe);
|
||||
users.setNode(uname, unode);
|
||||
|
||||
String usernameField = userMapping.getNameField();
|
||||
String usernameProp = null;
|
||||
|
|
Loading…
Add table
Reference in a new issue