chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller <>
Subject Re: Sharepoint and canDeleteTreeSpecified
Date Thu, 31 Mar 2011 09:20:49 GMT
Hi Alex,

canDeleteTreeSpecified is a class member generated by the .NET XML serialization framework.
It indicates if the tag exists in the XML document or not. It has nothing to do with the CMIS
It shouldn't show up IN the XML, thought. Only Microsoft can answer why it is there. OpenCMIS
ignores it.

The CMIS Workbench does work with SharePoint. There are a few issues that are caused by Microsofts
CMIS implementation. The CMIS Workbench works best with the AtomPub binding. If you can, turn
off NTLM and turn on basic authentication on the SharePoint end. 



On 31/03/2011 00:28, Alexander Chow wrote:
> 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="" xmlns=""></anyAttr>
> <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>
> ...
> </allowableActions>
> Incidentally, I have also noticed that the canDeleteTreeSpecified seems to be in the
DotCMIS code:
> 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.
> Thanks,
> Alex

View raw message