jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r412428 - /jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/BatchedItemOperations.java
Date Wed, 07 Jun 2006 15:32:01 GMT
Author: stefan
Date: Wed Jun  7 08:32:01 2006
New Revision: 412428

URL: http://svn.apache.org/viewvc?rev=412428&view=rev
Log:
JCR-452: Workspace.clone throws ItemNotFoundException on a referenceable node with children

Modified:
    jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/BatchedItemOperations.java

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/BatchedItemOperations.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/BatchedItemOperations.java?rev=412428&r1=412427&r2=412428&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/BatchedItemOperations.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/BatchedItemOperations.java
Wed Jun  7 08:32:01 2006
@@ -1206,14 +1206,13 @@
             log.debug(msg);
             throw new RepositoryException(msg);
         }
-        NodeState parent = getNodeState(parentId);
+        // remove target
+        recursiveRemoveNodeState(target);
         // remove child node entry from parent
+        NodeState parent = getNodeState(parentId);
         parent.removeChildNodeEntry(target.getNodeId());
         // store parent
         stateMgr.store(parent);
-
-        // remove target
-        recursiveRemoveNodeState(target);
     }
 
     /**



Mime
View raw message