kwin commented on code in PR #293:
URL: 
https://github.com/apache/jackrabbit-filevault/pull/293#discussion_r1179335748


##########
vault-core/src/test/java/org/apache/jackrabbit/vault/packaging/integration/PrincipalBasedIT.java:
##########
@@ -201,6 +206,24 @@ private void assertPolicy(@NotNull Principal principal, 
@NotNull AccessControlEn
         fail("expected PrincipalAccessControlList for principal " + 
principal.getName());
     }
 
+    @Test
+    public void testEntriesFromSetup() throws AccessDeniedException, 
AccessControlException, UnsupportedRepositoryOperationException, 
RepositoryException {
+        @NotNull
+        JackrabbitAccessControlPolicy[] applicablePolicies = 
acMgr.getApplicablePolicies(testUser.getPrincipal());
+        // for some reason only 1 is returned and no longer 2 as in the setUp 
method
+        assertEquals(1, applicablePolicies.length);

Review Comment:
   @anchela Do you know why evaluating principal ACLs set in [line 
110](https://github.com/apache/jackrabbit-filevault/pull/293/files#diff-038077103e482e4a69670d008bbd1c150aab6edb9c6cb2d8e531940b094170e9R110)
 doesn't work? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to