Return-Path: Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: (qmail 25622 invoked from network); 31 Mar 2011 09:21:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Mar 2011 09:21:27 -0000 Received: (qmail 37558 invoked by uid 500); 31 Mar 2011 09:21:27 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 37490 invoked by uid 500); 31 Mar 2011 09:21:26 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 37480 invoked by uid 99); 31 Mar 2011 09:21:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Mar 2011 09:21:25 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of florian.mueller@alfresco.com designates 207.126.144.115 as permitted sender) Received: from [207.126.144.115] (HELO eu1sys200aog103.obsmtp.com) (207.126.144.115) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 31 Mar 2011 09:21:18 +0000 Received: from source ([88.151.129.3]) by eu1sys200aob103.postini.com ([207.126.147.11]) with SMTP ID DSNKTZRHeSqTayA/CcXc5DcmQvNgJzbndJEQ@postini.com; Thu, 31 Mar 2011 09:20:58 UTC Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.alfresco.com (Postfix) with ESMTP id E361B414093; Thu, 31 Mar 2011 10:20:52 +0100 (BST) X-Virus-Scanned: amavisd-new at unx-d-manc4.tc.ifeltd.com Received: from zimbra.alfresco.com ([127.0.0.1]) by localhost (zimbra.alfresco.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9AGpWsE8Rxuq; Thu, 31 Mar 2011 10:20:52 +0100 (BST) Received: from Florian-Mullers-MacBook-Pro-2.local (unknown [194.75.202.169]) (Authenticated sender: florian.mueller) by zimbra.alfresco.com (Postfix) with ESMTP id DCD4841416C; Thu, 31 Mar 2011 10:20:51 +0100 (BST) Message-ID: <4D944771.7060407@alfresco.com> Date: Thu, 31 Mar 2011 10:20:49 +0100 From: =?UTF-8?B?RmxvcmlhbiBNw7xsbGVy?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: dev@chemistry.apache.org, Alexander Chow Subject: Re: Sharepoint and canDeleteTreeSpecified References: <79BF3E6D1ED2460781CBA2D61ED9B6F8@liferay.com> In-Reply-To: <79BF3E6D1ED2460781CBA2D61ED9B6F8@liferay.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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 specification. 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. Cheers, Florian 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(AbstractAtomPubService.java:405) > at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.deleteTree(ObjectServiceImpl.java:370) > at org.apache.chemistry.opencmis.client.runtime.FolderImpl.deleteTree(FolderImpl.java:176) > ... > > 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. > > > > > ... > true > true > true > ... > false > false > ... > > > > Incidentally, I have also noticed that the canDeleteTreeSpecified seems to be in the DotCMIS code: > > http://svn.apache.org/repos/asf/chemistry/dotcmis/trunk/DotCMIS/binding/converter.cs > > 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