Could not check permissions for Content confluence - v8.0.1

Hi All,

Is anyone having issue with checking permission for user on content (Page) using
PermissionManager:boolean hasPermission(@Nullable User var1, Permission var2, @Nullable Object var3); with help of new ContentService to retrieve the page object-

java.lang.IllegalArgumentException: Could not check permissions for Content
{id='ContentId{id=67108917}', type=page, title='cascdad', 
status=current, space=CollapsedReference{idProperties={key=UCKB}, 
referentClass=class com.atlassian.confluence.api.model.content.Space}, 
history=CollapsedReference{idProperties={contentParent=CollapsedReference{idProperties=
{id=ContentId{id=67108917}, version=CollapsedReference{idProperties={number=1}, 
referentClass=class com.atlassian.confluence.api.model.content.Version}, status=current}, 
referentClass=class com.atlassian.confluence.api.model.content.Content}}, referentClass=class 
com.atlassian.confluence.api.model.content.History}, version=CollapsedReference{idProperties=
{number=1}, referentClass=class com.atlassian.confluence.api.model.content.Version}, 
ancestors=null (CollapsedList), container=CollapsedReference{idProperties={key=UCKB}, 
referentClass=class com.atlassian.confluence.api.model.content.Space}}
no suitable delegate found.
1 Like