resourceResolver.commit() , works on Author server , throws "Access denied" on Publish server
Hi All,
I have a Java component bean which creates a child resource and then calls resourceResolver.commit().
It is working fine on the 6.3 Author server.
But on the 6.3 Publish server it is throwing the following exception:-
org.apache.sling.api.resource.PersistenceException: Unable to commit changes to session.
Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: OakAccess0000: Access denied
at org.apache.jackrabbit.oak.security.authorization.permission.PermissionValidator.checkPermissions(PermissionValidator.java:210) [org.apache.jackrabbit.oak-core:1.8.2]
Does anyone know how I can investigate / resolve this?
Thank you for your time.