]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.server.jcr/src/org/argeo/jcr/JcrUtils.java
Improve Jackrabbit testing
[lgpl/argeo-commons.git] / org.argeo.server.jcr / src / org / argeo / jcr / JcrUtils.java
index 2176e757cacac3141eb2e7c90a39302e085e0a8b..c42f84ece40c01decd7c025f0ae3026c4a8cda0a 100644 (file)
@@ -1393,6 +1393,9 @@ public class JcrUtils implements ArgeoJcrConstants {
                                acl.removeAccessControlEntry(ace);
                        }
                }
+               // the new access control list must be applied otherwise this call:
+               // acl.removeAccessControlEntry(ace); has no effect
+               acm.setPolicy(path, acl);
        }
 
        /*
@@ -1415,7 +1418,6 @@ public class JcrUtils implements ArgeoJcrConstants {
         *            files
         * @return how many files were copied
         */
-       @SuppressWarnings("resource")
        public static Long copyFiles(Node fromNode, Node toNode, Boolean recursive,
                        ArgeoMonitor monitor) {
                long count = 0l;