Merge pull request #2446 from Alfresco/feature/mkinas-ACS-5506-exception-fix

[ACS-5506] Fix string to node ref cast exception
This commit is contained in:
MichalKinas
2024-02-13 19:29:26 +01:00
committed by GitHub
2 changed files with 7 additions and 2 deletions

View File

@@ -424,6 +424,11 @@ public class ACLEntryAfterInvocationProvider implements AfterInvocationProvider,
@SuppressWarnings("rawtypes")
private Pair decide(Authentication authentication, Object object, ConfigAttributeDefinition config, Pair returnedObject) throws AccessDeniedException
{
if (returnedObject.getSecond() != null && !NodeRef.class.isAssignableFrom(returnedObject.getSecond().getClass()))
{
return returnedObject;
}
NodeRef nodeRef = (NodeRef) returnedObject.getSecond();
decide(authentication, object, config, nodeRef);
// the noderef was allowed