jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r512296 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/CachingHierarchyManager.java
Date Tue, 27 Feb 2007 16:05:57 GMT
Author: stefan
Date: Tue Feb 27 08:05:51 2007
New Revision: 512296

URL: http://svn.apache.org/viewvc?view=rev&rev=512296
Log:
JCR-768 Node.getPath() will corrupt the session

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/CachingHierarchyManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/CachingHierarchyManager.java?view=diff&rev=512296&r1=512295&r2=512296
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/CachingHierarchyManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/CachingHierarchyManager.java
Tue Feb 27 08:05:51 2007
@@ -337,7 +337,8 @@
      * {@inheritDoc}
      */
     public void stateDiscarded(ItemState discarded) {
-        if (discarded.isTransient() && !discarded.hasOverlayedState()) {
+        if (discarded.isTransient() && !discarded.hasOverlayedState()
+                && discarded.getStatus() == ItemState.STATUS_NEW) {
             // a new node has been discarded -> remove from cache
             remove(discarded.getId());
         } else if (provider.hasItemState(discarded.getId())) {



Mime
View raw message