From 1271379eda77a8b3911866eb054f0ecd50583767 Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 23 Mar 2004 14:11:06 +0000 Subject: [PATCH] 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 (!). --- src/helma/framework/core/Application.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/helma/framework/core/Application.java b/src/helma/framework/core/Application.java index ddd52c51..e10c48b4 100644 --- a/src/helma/framework/core/Application.java +++ b/src/helma/framework/core/Application.java @@ -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;