chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Chow <>
Subject Sharepoint and canDeleteTreeSpecified
Date Wed, 30 Mar 2011 23:28:00 GMT
Hi all, 

So, we are trying to use OpenCMIS 0.2.0 to access a Sharepoint 2010 repository and noticed
that we can't call Folder.deleteTree(). We get the following stacktrace snippet:

Caused by: org.apache.chemistry.opencmis.commons.exceptions.CmisNotSupportedException: Method
Not Allowed
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.deleteTree(
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.deleteTree(

Upon further investigation, it turns out that indeed the allowableActions entry "canDeleteTree"
is FALSE. But there seems to be another entry that I am not familiar with and can't seem to
find in the CMIS 1.0 spec... "canDeleteTreeSpecified", which is TRUE.

<allowableActions xmlns="">
<anyAttr i:nil="true" xmlns:a="" xmlns:i=""
<any i:nil="true" xmlns:a="" xmlns:i=""
<canDeleteObject xmlns="">true</canDeleteObject>
<canDeleteObjectSpecified xmlns="">true</canDeleteObjectSpecified>
<canDeleteTreeSpecified xmlns="">true</canDeleteTreeSpecified>
<canDeleteContentStream xmlns="">false</canDeleteContentStream>
<canDeleteTree xmlns="">false</canDeleteTree>

Incidentally, I have also noticed that the canDeleteTreeSpecified seems to be in the DotCMIS

Can somebody give some light as to what Sharepoint (and DotCMIS) is doing here? Are we unable
to delete the trees of a folder? Or is there some part of the spec which I am not familiar
with? Incidentally, it seems as though the CMIS workbench does not work either with Sharepoint.


  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message