tsgrp / HPI

OpenContent Management Suite (OCMS)
http://www.tsgrp.com/products
17 stars 5 forks source link

ACA PnP changing extendPermissionModel bean id in module context #2334

Closed mwojno-tsg closed 3 years ago

mwojno-tsg commented 3 years ago

Overview

[2020-11-24 18:32:55,860|ERROR|AspectSecurityBehaviour|doWork|150] failed running doWork!
java.lang.UnsupportedOperationException: Can not find wizard_form_pending_approval
    at org.alfresco.repo.security.permissions.impl.model.PermissionModel$MutableState.getPermissionReference(PermissionModel.java:1012)
    at org.alfresco.repo.security.permissions.impl.model.PermissionModel.getPermissionReference(PermissionModel.java:1858)
    at org.alfresco.repo.security.permissions.impl.PermissionServiceImpl.getPermissionReference_aroundBody58(PermissionServiceImpl.java:1190)
    at org.alfresco.repo.security.permissions.impl.PermissionServiceImpl$AjcClosure59.run(PermissionServiceImpl.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:257)
    at org.alfresco.traitextender.AJExtender.localProceed(AJExtender.java:728)
    at org.alfresco.traitextender.AJProxyTrait.invoke(AJProxyTrait.java:86)
    at com.sun.proxy.$Proxy40.getPermissionReference(Unknown Source)
    at 

Solution

mwojno-tsg commented 3 years ago

Issue closed with OC commit: 26551. changed permission model bean id to 'com.tsgrp.opencontent.extendPermissionModel' instead of 'extendPermissionModel'. We ran into a bean conflict with pnp paas env that threw off permissions for ACA. The better practice for the bean id is declaring what module they are in anyways.

Following project's module context was changed:

CR: gsteimer, dgrumieaux