Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EBF3F200AF5 for ; Thu, 2 Jun 2016 13:13:29 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EAAE9160A3F; Thu, 2 Jun 2016 11:13:29 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 39446160A16 for ; Thu, 2 Jun 2016 13:13:29 +0200 (CEST) Received: (qmail 98936 invoked by uid 500); 2 Jun 2016 11:13:28 -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 98925 invoked by uid 99); 2 Jun 2016 11:13:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2016 11:13:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id EBCB418046E for ; Thu, 2 Jun 2016 11:13:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.001 X-Spam-Level: * X-Spam-Status: No, score=1.001 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, UNPARSEABLE_RELAY=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 6U_kEjEWKI9u for ; Thu, 2 Jun 2016 11:13:26 +0000 (UTC) Received: from plasma32.jpberlin.de (plasma32.jpberlin.de [80.241.57.8]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id CD4A75F39A for ; Thu, 2 Jun 2016 11:13:25 +0000 (UTC) Received: from hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) by plasma.jpberlin.de (Postfix) with ESMTP id 2B1381008C1; Thu, 2 Jun 2016 13:13:18 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from plasma.jpberlin.de ([80.241.56.76]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10024) with ESMTP id u3PyHL5URy0H; Thu, 2 Jun 2016 13:13:16 +0200 (CEST) Received: from webmail.jpberlin.de (sinatra9.heinlein-hosting.de [80.241.56.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: fmueller@jpberlin.de) by plasma.jpberlin.de (Postfix) with ESMTPSA id 87E1B1005D6; Thu, 2 Jun 2016 13:13:16 +0200 (CEST) Received: from fJnxq8Mkym5QosXTu/Y9p++4vN2gVmM2F1RypqBzsdI= (8EunqTuPvm/MGPYAXNH/JfiAKNZ4zISv) by webmail.jpberlin.de with HTTP (HTTP/1.1 POST); Thu, 02 Jun 2016 13:13:16 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 02 Jun 2016 13:13:16 +0200 From: =?UTF-8?Q?Florian_M=C3=BCller?= To: Neza Guillaine Cc: dev@chemistry.apache.org Subject: Re: Requesting for help in querying sharepoint 2010 Via CMIS workbench In-Reply-To: References: <573F717B.60000@apache.org> Message-ID: X-Sender: fmui@apache.org User-Agent: RoundCube Webmail archived-at: Thu, 02 Jun 2016 11:13:30 -0000 Hi Neza, Since getFolderTree and getDescendants are not supported by SharePoint you have to either walk through the hierarchy with getChildren or use a query ("SELECT * FROM cmis:documents"). I would prefer the query over getChildren and would not advise to use getFolderTree or getDescendants even if it would be supported. (getDescendants delivers everything in your repository in one response if you call it on the root folder. Depending on your repository that can be a lot! I've seen getDescendants responses of a few hundred MB. It works but it took some time to generate the response on the server side and to read it on the client side. The overall user experience was ... not good). Using a query has the advantage that you can page the results and therefore deal with a really large number of documents in your repository. If you need Document objects instead of QueryResult objects, checkout the method Session.queryObjects(...). - Florian > Hi Florian and opencmis devs > > I hope this email finds you well. > I have been trying use opencmis to try to navigate my sharepoint 2010 > repository. > I was reading on the dev guide but Ic ouldn't see how to navigate and > see all documents on my repository. > > My request is: > > I am connecting to my repository in eclipse, I want to be able to view > all documents in the folders and subfolders on that root repository. > What I saw is that the getFolderTree capability seem to not be > supported in SP 2010. Is there any way for using the api to get all > documents for a root folder? I don't want to use the QueryResult. > > Any help will be appreciated. I really need to get that list of > documents. > > Thanks. > Neza > > On Fri, May 20, 2016 at 8:20 PM, Florian Müller > wrote: > >> Hi Neza, >> >> SharePoint has its quirks and OpenCMIS provides workarounds for a >> few >> issues, but in general OpenCMIS is working fine with SharePoint. >> >> What authentication method are you using? >> Basic authentication and Kerberos are known to work (if correctly >> configured on the server side). >> NTLM is not working. At first glance it seem to work, but eventually >> HTTP POST requests (like query) will fail. >> >> - Florian >> >>> Hi Devs and Florian, >>> >>> My name is Neza. I am writing request for your help in cmis. >>> I had tried using cmis workbench to query documents from the >> alfresco side >>> and it work perfectly, but when I moved to the sharepoint side, >> every >>> single thing i do in my query return a: Runtime: Unauthorized >> exception. IT >>> seems that queried from sharepoint are not being interpreted. Even >> if I do >>> something very basic lile: >>> >>> SELECT * from cmis:document. >>> >>> This have been running me crazy, I googled alot around since >> monday and did >>> not et any answer to my case. A few suggestions but nothing let me >> to the >>> solution. >>> >>> If you have already encountered this issue or can provide help, I >> would >>> appreciate. >>> My cmis workbench is: 0.13.0 and SP 2010. >>> >>> Regards, >>> Neza >>>