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

Error accessing a document whose parent is not accessible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Detail
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4.2
    • Component/s: CMIS

      Description

      When someone access to a document using a path ref, an error is logged if the user has no read permissions to it's parent.
      This applies for instance for children of the UserWorkspaces (user's personal Workspace).

      10:42:59,614 ERROR [NuxeoCmisService] org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: org.nuxeo.ecm.core.api.DocumentSecurityException: Privilege READ is not granted to Administrator
      org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: org.nuxeo.ecm.core.api.DocumentSecurityException: Privilege READ is not granted to Administrator
      at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService.getObjectParentsInternal(NuxeoCmisService.java:1468)
      at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService.getObjectParents(NuxeoCmisService.java:1436)
      at org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService.getObjectInfoIntern(AbstractCmisService.java:1019)
      at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService.getObjectInfo(NuxeoCmisService.java:859)
      at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService.collectObjectInfo(NuxeoCmisService.java:889)
      at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService.getObjectByPath(NuxeoCmisService.java:776)
      at org.nuxeo.ecm.core.opencmis.impl.client.NuxeoSession.getObjectByPath(NuxeoSession.java:303)
      at org.nuxeo.ecm.core.opencmis.impl.client.NuxeoSession.getObjectByPath(NuxeoSession.java:292)
      at org.nuxeo.ecm.core.opencmis.impl.NuxeoSessionTestCase.testUserWorkspace(NuxeoSessionTestCase.java:641)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: