Ard Schrijvers pushed to branch jackrabbit-2.10.1-patched at cms-community / hippo-jackrabbit-patches
Commits: e4139fec by Ard Schrijvers at 2016-07-21T20:22:07+02:00 REPO-190: Non-authorized dispatching of JCR events. The following patch makes events to be send to clients even though they are not allowed to read the node for which the event occurs. This will result in more events being received (albeit in practice not that many more), but significantly improves speed because the authorization does not need to be evaluated always. - - - - - 1 changed file: - jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventConsumer.java Changes: ===================================== jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventConsumer.java ===================================== --- a/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventConsumer.java +++ b/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventConsumer.java @@ -303,7 +303,6 @@ class EventConsumer { * @throws RepositoryException */ private boolean canRead(EventState eventState) throws RepositoryException { - Path targetPath = pathFactory.create(eventState.getParentPath(), eventState.getChildRelPath().getName(), eventState.getChildRelPath().getNormalizedIndex(), true); - return session.getAccessManager().isGranted(targetPath, Permission.READ); + return true; } } View it on GitLab: https://code.onehippo.org/cms-community/hippo-jackrabbit-patches/commit/e4139fecce52293fb16d10d444022a64765a56b8
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn