jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1492716 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/WriteTest.java
Date Thu, 13 Jun 2013 15:53:18 GMT
Author: mduerig
Date: Thu Jun 13 15:53:17 2013
New Revision: 1492716

URL: http://svn.apache.org/r1492716
Log:
OAK-869: Runtime exception while adding node
Added @Ignored test case

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/WriteTest.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/WriteTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/WriteTest.java?rev=1492716&r1=1492715&r2=1492716&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/WriteTest.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/WriteTest.java
Thu Jun 13 15:53:17 2013
@@ -31,6 +31,7 @@ import org.apache.jackrabbit.commons.jac
 import org.apache.jackrabbit.oak.spi.security.privilege.PrivilegeConstants;
 import org.apache.jackrabbit.test.NotExecutableException;
 import org.apache.jackrabbit.util.Text;
+import org.junit.Ignore;
 import org.junit.Test;
 
 /**
@@ -421,6 +422,17 @@ public class WriteTest extends AbstractE
         assertTrue(testSession.hasPermission(childNPath, Session.ACTION_ADD_NODE));
     }
 
+    // FIXME OAK-869: This currently throws an IllegalStateException. Set correct test expectations
+    @Test
+    @Ignore
+    public void testWriteOnParentWithNoReadePriv() throws Exception {
+        Node a = superuser.getNode(path).addNode("a");
+        allow(path, testUser.getPrincipal(), readWritePrivileges);
+        deny(a.getPath(), testUser.getPrincipal(), readPrivileges);
+        superuser.save();
+        testSession.getNode(path).addNode("a");
+    }
+
     @Test
     public void testSingleDenyAfterAllAllowed() throws Exception {
         /* add 'all' privilege for testSession at path. */



Mime
View raw message