jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1145663 - 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 Tue, 12 Jul 2011 16:31:39 GMT
Author: alexparvulescu
Date: Tue Jul 12 16:31:39 2011
New Revision: 1145663

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

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=1145663&r1=1145662&r2=1145663&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
Tue Jul 12 16:31:39 2011
@@ -72,14 +72,6 @@ public abstract class SessionItemOperati
             protected Boolean perform(ItemManager manager, Path path) {
                 return manager.propertyExists(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=1145663&r1=1145662&r2=1145663&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
Tue Jul 12 16:31:39 2011
@@ -17,7 +17,6 @@
 package org.apache.jackrabbit.core.integration;
 
 import java.security.AccessControlException;
-import java.util.UUID;
 
 import javax.jcr.Credentials;
 import javax.jcr.PathNotFoundException;
@@ -28,6 +27,7 @@ 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;
@@ -171,9 +171,8 @@ public class SessionImplTest extends Abs
      *      href="https://issues.apache.org/jira/browse/JCR-3014">JCR-3014</a>
      */
     public void testCheckNonExistingItem() throws Exception {
-        String dummyPath = "[" + UUID.randomUUID() + "]";
+        String dummyPath = "[" + NodeId.randomId() + "]";
         assertFalse(superuser.itemExists(dummyPath));
         assertFalse(superuser.nodeExists(dummyPath));
-        assertFalse(superuser.propertyExists(dummyPath));
     }
 }



Mime
View raw message