Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-149

OpenCMIS folder.getPath / folder.getFolderParent fail with CmisObjectNotFoundException for root folder

    XMLWordPrintableJSON

Details

    Description

      Folder rootFolder = session.getRootFolder();
      String path = rootFolder.getPath();

      Above fails with:

      org.apache.opencmis.commons.exceptions.CmisObjectNotFoundException - Unknown repository or folder!

      org.apache.opencmis.client.provider.spi.atompub.NavigationServiceImpl.getObjectParents(NavigationServiceImpl.java:304)
      org.apache.opencmis.client.runtime.AbstractPersistentFilableCmisObject.getPaths(AbstractPersistentFilableCmisObject.java:91)
      org.apache.opencmis.client.runtime.PersistentFolderImpl.getPath(PersistentFolderImpl.java:363)

      This should return "/".

      The same exception is also thrown for rootFolder.getFolderParent(). I think returning null is easier to consume, but this can be discussed.

      Attachments

        Activity

          People

            fmui Florian Müller
            dcaruana David Caruana
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: