You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "David Caruana (JIRA)" <ji...@apache.org> on 2010/03/08 17:17:27 UTC
[jira] Created: (CMIS-149) OpenCMIS folder.getPath /
folder.getFolderParent fail with CmisObjectNotFoundException for root
folder
OpenCMIS folder.getPath / folder.getFolderParent fail with CmisObjectNotFoundException for root folder
------------------------------------------------------------------------------------------------------
Key: CMIS-149
URL: https://issues.apache.org/jira/browse/CMIS-149
Project: Chemistry
Issue Type: Bug
Components: opencmis-client, opencmis-provider
Reporter: David Caruana
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CMIS-149) OpenCMIS folder.getPath /
folder.getFolderParent fail with CmisObjectNotFoundException for root
folder
Posted by "Florian Müller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Florian Müller reassigned CMIS-149:
-----------------------------------
Assignee: Florian Müller
> OpenCMIS folder.getPath / folder.getFolderParent fail with CmisObjectNotFoundException for root folder
> ------------------------------------------------------------------------------------------------------
>
> Key: CMIS-149
> URL: https://issues.apache.org/jira/browse/CMIS-149
> Project: Chemistry
> Issue Type: Bug
> Components: opencmis-client, opencmis-provider
> Reporter: David Caruana
> Assignee: Florian Müller
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CMIS-149) OpenCMIS folder.getPath /
folder.getFolderParent fail with CmisObjectNotFoundException for root
folder
Posted by "Florian Müller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Florian Müller resolved CMIS-149.
---------------------------------
Resolution: Fixed
It failed because the root folder has no up link.
> OpenCMIS folder.getPath / folder.getFolderParent fail with CmisObjectNotFoundException for root folder
> ------------------------------------------------------------------------------------------------------
>
> Key: CMIS-149
> URL: https://issues.apache.org/jira/browse/CMIS-149
> Project: Chemistry
> Issue Type: Bug
> Components: opencmis-client, opencmis-provider
> Reporter: David Caruana
> Assignee: Florian Müller
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.