jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r607777 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/LocalItemStateManager.java
Date Mon, 31 Dec 2007 21:08:04 GMT
Author: tripod
Date: Mon Dec 31 13:08:04 2007
New Revision: 607777

URL: http://svn.apache.org/viewvc?rev=607777&view=rev
Log:
JCR-1197 Node.restore() may throw InvalidItemStateException

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/LocalItemStateManager.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/LocalItemStateManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/LocalItemStateManager.java?rev=607777&r1=607776&r2=607777&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/LocalItemStateManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/LocalItemStateManager.java
Mon Dec 31 13:08:04 2007
@@ -391,6 +391,10 @@
         } else {
             // local state was created
             local = created;
+            // just ensure that the newly created state is still cached. it can
+            // happen during a restore operation that a state with the same id
+            // is deleted and created (JCR-1197)
+            cache.cache(local);
         }
         if (local != null) {
             dispatcher.notifyStateCreated(created);



Mime
View raw message