jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1146125 - in /jackrabbit/trunk/jackrabbit-core/src: main/java/org/apache/jackrabbit/core/session/SessionItemOperation.java test/java/org/apache/jackrabbit/core/integration/SessionImplTest.java
Date Wed, 13 Jul 2011 16:47:54 GMT
Author: alexparvulescu
Date: Wed Jul 13 16:47:54 2011
New Revision: 1146125

URL: http://svn.apache.org/viewvc?rev=1146125&view=rev
Log:
JCR-3014 Identifier paths for inexistent items throw exception
 - full rollback

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionItemOperation.java
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/integration/SessionImplTest.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionItemOperation.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionItemOperation.java?rev=1146125&r1=1146124&r2=1146125&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionItemOperation.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionItemOperation.java
Wed Jul 13 16:47:54 2011
@@ -48,14 +48,6 @@ public abstract class SessionItemOperati
             protected Boolean perform(ItemManager manager, Path path) {
                 return manager.itemExists(path);
             }
-            @Override
-            public Boolean perform(SessionContext context) {
-                try {
-                    return super.perform(context);
-                } catch (RepositoryException e) {
-                    return false;
-                }
-            }
         };
     }
 
@@ -88,14 +80,6 @@ public abstract class SessionItemOperati
             protected Boolean perform(ItemManager manager, Path path) {
                 return manager.nodeExists(path);
             }
-            @Override
-            public Boolean perform(SessionContext context) {
-                try {
-                    return super.perform(context);
-                } catch (RepositoryException e) {
-                    return false;
-                }
-            }
         };
     }
 

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/integration/SessionImplTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/integration/SessionImplTest.java?rev=1146125&r1=1146124&r2=1146125&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/integration/SessionImplTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/integration/SessionImplTest.java
Wed Jul 13 16:47:54 2011
@@ -27,7 +27,6 @@ import javax.security.auth.Subject;
 
 import org.apache.jackrabbit.core.RepositoryImpl;
 import org.apache.jackrabbit.core.SessionImpl;
-import org.apache.jackrabbit.core.id.NodeId;
 import org.apache.jackrabbit.core.security.principal.PrincipalImpl;
 import org.apache.jackrabbit.test.AbstractJCRTest;
 import org.apache.jackrabbit.test.NotExecutableException;
@@ -163,16 +162,4 @@ public class SessionImplTest extends Abs
             // success
         }
     }
-
-    /**
-     * JCR-3014 Identifier paths for inexistent items throw exception
-     * 
-     * @see <a
-     *      href="https://issues.apache.org/jira/browse/JCR-3014">JCR-3014</a>
-     */
-    public void testCheckNonExistingItem() throws Exception {
-        String dummyPath = "[" + NodeId.randomId() + "]";
-        assertFalse(superuser.itemExists(dummyPath));
-        assertFalse(superuser.nodeExists(dummyPath));
-    }
 }



Mime
View raw message