### Eclipse Workspace Patch 1.0 #P oak-jcr Index: src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/ReadTest.java =================================================================== --- src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/ReadTest.java (revision 1480188) +++ src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/ReadTest.java (working copy) @@ -114,6 +114,15 @@ // testuser must not be able to access that node assertFalse(testSession.nodeExists(path)); } + + @Test + public void testAllowReadWithGlobRestriction()throws Exception{ + Node a = superuser.getNode(path).addNode("a"); + allow(path,readPrivileges); + deny(path,readPrivileges,createGlobRestriction("*/anotherpath")); + allow(a.getPath(), repWritePrivileges); + assertNotNull(testSession.getNode(path).getNode("a")); + } @Test public void testReadDenied() throws Exception {