I'm working on upgrade Alfresco 5.0 to 7.4. As documentation said i need make first upgrade to 5.2 and then to 7.4. I successfully migrate project with all dependencies to SDK 4.6 and run it in Alfresco 7.4. Now i tried migrade Alfresco data.
I restore backup from 5.0 in 5.2 and seems that everything is working. So i did backup in 5.2 and tried restore in 7.4. Alfresco start normally, everything working again but all crash when i tried edit permission. Manually via Share or via Java action i get same error:
Cannot invoke "org.alfresco.util.PolicyIgnoreUtil.ignorePolicy(org.alfresco.service.cmr.repository.NodeRef)" because "this.policyIgnoreUtil" is null
For me it is very strange because this error comes from depth of Alfresco, see code on github. Files can be upload or created, error comes only when is attempt to change them. I do everything as admin. I tried permissionService via java action but it crashing only on changing methods. Get methods like this works:
permissionService.getInheritParentPermissions(actionedUponNodeRef); permissionService.getAllSetPermissions(actionedUponNodeRef);
but change methods like this crash:
permissionService.setInheritParentPermissions(actionedUponNodeRef, false);
Have someone seen something like this before? Any ideas for more debugging will be good too.
Solved! Go to Solution.
Yes, problem was in old addon on 5.0 which extends PermissionServiceImpl. Back then there were some fixes about permissions. My solution was simple. Remove addon from 5.0, apply amps, make backup and after that restore.
It shouldn't happened, it's seem you can't retrieve the "policyIgnoreUtil" bean reference form teh "policy-context.xml" file.
Try to put the bean "policyIgnoreUtil" in a context file made by you:
<bean id="policyIgnoreUtil" class="org.alfresco.util.PolicyIgnoreUtil"> <property name="tenantService" ref="tenantService"/> <property name="storesToIgnorePolicies" ref="storesToIgnorePolicies"/> </bean>
Now I found that i had one addon on 5.0 that extends PermissionServiceImpl. That must be source of that problem.
Yes, problem was in old addon on 5.0 which extends PermissionServiceImpl. Back then there were some fixes about permissions. My solution was simple. Remove addon from 5.0, apply amps, make backup and after that restore.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.