mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
ACS-5506 Fix string to node ref cast exception
This commit is contained in:
@@ -269,7 +269,18 @@ public class ACLEntryAfterInvocationProvider implements AfterInvocationProvider,
|
||||
}
|
||||
else if (Pair.class.isAssignableFrom(returnedObject.getClass()))
|
||||
{
|
||||
return decide(authentication, object, config, (Pair) returnedObject);
|
||||
Pair<?, ?> pair = (Pair<?, ?>) returnedObject;
|
||||
if (pair.getSecond() != null && NodeRef.class.isAssignableFrom(pair.getSecond().getClass()))
|
||||
{
|
||||
return decide(authentication, object, config, pair);
|
||||
} else
|
||||
{
|
||||
if (log.isDebugEnabled())
|
||||
{
|
||||
log.debug("Uncontrolled object - access allowed for " + object.getClass().getName());
|
||||
}
|
||||
return returnedObject;
|
||||
}
|
||||
}
|
||||
else if (ChildAssociationRef.class.isAssignableFrom(returnedObject.getClass()))
|
||||
{
|
||||
|
Reference in New Issue
Block a user