Dear All,
the org.alfresco.enterprise.repo.event2.PermissionEventGenerator produces permission generations event errors for deleted nodes (for example nodes deleted by repository behaviour logics).
In the public void afterCommit() method we reckon that you have to correct your code for example in this way:
Dear All, the org.alfresco.enterprise.repo.event2.PermissionEventGenerator produces permission generations event errors for deleted nodes (for example nodes deleted by repository behaviour logics).
In the public void afterCommit() method we reckon that you have to correct your code for example in this way:
for (Map.Entry<NodeRef, EnterpriseEventConsolidator> entry : consolidators.getPermissionChanges().entrySet()) { if (!nodeService.exists(entry.getKey())) { //ADDED CODE LOGGER.warn("Node " + entry.getKey() + " doesn't exist -- skipping event permission generation"); continue; } EnterpriseEventConsolidator eventConsolidator = entry.getValue(); sendEvent(entry.getKey(), eventConsolidator); sendChildrenEvents(entry.getKey()); }
Regards.