Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-19446

Only an administrator user can create relations using a CMIS client

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 7.10, 8.2
    • Fix Version/s: 7.10-HF08, 8.3
    • Component/s: CMIS
    • Tags:
    • Backlog priority:
      700

      Description

      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
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.