Hi Florent,
The spec doesn't really clarify this case.
Here is my personal gut feeling:
I think there should be an "up" link because every folder in CMIS must
have a parent folder. So a client could expect an "up" link.
Accessing the parent should throw a permissionDenied exception in your
case, though. I guess that would also match the behavior of the other
two bindings.
- Florian
Hi,
In some of our applications a given folder (a user's workspace) has
internally a parent that exists but is not accessible to the
particular user. Therefore we return no parent for it.
However Chemistry assumes that only the root can have no parent:
org.apache.chemistry.opencmis.client.runtime.FolderImpl.getParents
checks if it's not the root, and if not calls
org.apache.chemistry.opencmis.client.bindings.spi.atompub.NavigationServiceImpl.getFolderParent
which fails as there's not rel="up" link.
What do you think? Is what we do illegal according to the spec, or is
it just Chemistry that has to be patched?
Florent