How to reproduce:
- log in as a user other than Administrator or a member of group administrators in CMIS Workbench
- create an object of type Relationship between 2 documents
The relation is not created and the following error is displayed:
The following stacktrace is generated in server.log:
2016-04-11 13:50:08,540 WARN [http-bio-0.0.0.0-8080-exec-33] [org.nuxeo.ecm.core.opencmis.bindings.NuxeoCmisServiceWrapper] org.nuxeo.ecm.core.api.NuxeoException: Only Administrators can create placeless documents org.nuxeo.ecm.core.api.NuxeoException: Only Administrators can create placeless documents at org.nuxeo.ecm.core.api.AbstractSession.createDocument(AbstractSession.java:691) at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService.createObject(NuxeoCmisService.java:595) at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService.createRelationship(NuxeoCmisService.java:745) at org.apache.chemistry.opencmis.server.support.wrapper.ConformanceCmisServiceWrapper.createRelationship(ConformanceCmisServiceWrapper.java:852) at org.apache.chemistry.opencmis.server.impl.atompub.ObjectService$CreateRelationship.serve(ObjectService.java:185) at org.apache.chemistry.opencmis.server.shared.Dispatcher.dispatch(Dispatcher.java:92) at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.dispatch(CmisAtomPubServlet.java:259) at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.service(CmisAtomPubServlet.java:198) at org.nuxeo.ecm.core.opencmis.bindings.NuxeoCmisAtomPubServlet.service(NuxeoCmisAtomPubServlet.java:60) ... 2016-04-11 13:50:08,543 ERROR [http-bio-0.0.0.0-8080-exec-33] [org.nuxeo.ecm.core.opencmis.bindings.DefaultErrorExtractor] Only Administrators can create placeless documents org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Only Administrators can create placeless documents at org.nuxeo.ecm.core.opencmis.bindings.NuxeoCmisServiceWrapper.createCmisException(NuxeoCmisServiceWrapper.java:58) at org.apache.chemistry.opencmis.server.support.wrapper.ConformanceCmisServiceWrapper.createRelationship(ConformanceCmisServiceWrapper.java:855) at org.apache.chemistry.opencmis.server.impl.atompub.ObjectService$CreateRelationship.serve(ObjectService.java:185) at org.apache.chemistry.opencmis.server.shared.Dispatcher.dispatch(Dispatcher.java:92) at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.dispatch(CmisAtomPubServlet.java:259) at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.service(CmisAtomPubServlet.java:198) at org.nuxeo.ecm.core.opencmis.bindings.NuxeoCmisAtomPubServlet.service(NuxeoCmisAtomPubServlet.java:60) ... Caused by: org.nuxeo.ecm.core.api.NuxeoException: Only Administrators can create placeless documents at org.nuxeo.ecm.core.api.AbstractSession.createDocument(AbstractSession.java:691) at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService.createObject(NuxeoCmisService.java:595) at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService.createRelationship(NuxeoCmisService.java:745) at org.apache.chemistry.opencmis.server.support.wrapper.ConformanceCmisServiceWrapper.createRelationship(ConformanceCmisServiceWrapper.java:852) ... 69 more
- depends on
-
NXP-19449 Allow creation of relations from CMIS for non-Administrator
- Open