I am using the CMIS connector through Mule ESB to manage documents in our alfresco repository. When using the <cmis:get-or-create-folder-by-path> componant, I am getting a permission denied exception.
Exception stack is: 1. Forbidden (org.apache.chemistry.opencmis.commons.exceptions.CmisPermissionDeniedException) org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService:430 (null) 2. Failed to invoke getOrCreateFolderByPath. Message payload is of type: AlfrescoFolderImpl (org.mule.api.MessagingException) org.mule.module.cmis.processors.GetOrCreateFolderByPathMessageProcessor:139 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html) ——————————————————————————– Root Exception stack trace: org.apache.chemistry.opencmis.commons.exceptions.CmisPermissionDeniedException: Forbidden at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:430) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.read(AbstractAtomPubService.java:554) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getObjectInternal(AbstractAtomPubService.java:778) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ********************************************************************************
I am able to create a document in a folder that already exists, but I want to have the ability to create a folder and then create a document in that folder. This works: <cmis:get-or-create-folder-by-path config-ref="CMIS" folderPath="/Travel/" doc:name="Create Folder"/> This doesnt: <cmis:get-or-create-folder-by-path config-ref="CMIS" folderPath="/Travel/Andysfolder/" doc:name="Create Folder"/>
The user I am using is set to have Coordinator permissions on the /Travel folder. I have also tried with Collaborator and Editor level permissions
Any ideas on what could cause this forbidden error? Other than Owner, Coordinator appears to have the highest level of permissions
Please check your "Travel" folder to see if permissions are set to inherit or not. If permissions are set to inherit ,a coordinator can do anything to t its children .