Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A674C2B45 for ; Thu, 5 May 2011 12:02:43 +0000 (UTC) Received: (qmail 50791 invoked by uid 500); 5 May 2011 12:02:43 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 50731 invoked by uid 500); 5 May 2011 12:02:42 -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 50723 invoked by uid 99); 5 May 2011 12:02:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 12:02:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 12:02:41 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1CB91C2C20 for ; Thu, 5 May 2011 12:02:03 +0000 (UTC) Date: Thu, 5 May 2011 12:02:03 +0000 (UTC) From: "David Miller (JIRA)" To: dev@chemistry.apache.org Message-ID: <387880694.24438.1304596923114.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2037386138.19452.1304448843357.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CMIS-362) Cannot checkout documents from SharePoint 2010 repository using REST MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CMIS-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029295#comment-13029295 ] David Miller commented on CMIS-362: ----------------------------------- Versioning is enabled: I can add a document via OpenCMIS with VersionState.MAJOR, and using the SP user interface, I can publish major or minor versions. Yesterday I enumerated the allowable actions on my OpenCMIS-added documents, and CAN_CHECKOUT was in the list. We configured our SharePoint to allow replacing the content stream without checking out first. Now, using OpenCMIS, I can set the content stream, and this results in a checkout (in SharePoint UI, on the Version History dialog, I see a new minor version). However, I can't checkin; I get the same Bad Request I do for checkout. Also, using Wireshark I found the Atom message OpenCMIS sends to SharePoint. Using the Firefox REST Client, I send the same message, and get the same Bad Request. In experimenting with the message, I found I can send any payload - invalid XML, or even an empty payload - and I always get the same "Bad Request" response from SP. Also, I pointed the CMIS Workbench to my SharePoint repository, and after selecting a repository and logging in, I see an error: "CmisRuntimeException: Property 'cmis:contentStreamFileName' doesn't exist!" Does that tell you anything useful? Thanks, Dave > Cannot checkout documents from SharePoint 2010 repository using REST > -------------------------------------------------------------------- > > Key: CMIS-362 > URL: https://issues.apache.org/jira/browse/CMIS-362 > Project: Chemistry > Issue Type: Bug > Components: opencmis-client > Affects Versions: OpenCMIS 0.3.0 > Reporter: David Miller > > Using Chemistry I can add a document to SharePoint 2010 via the AtomPub bindings. Adding the document gives me a Chemistry Document instance. When I call checkOut() on this instance, I get a "Bad Request" response (HTTP 400 status code), and the response body from SP 2010 is just the single word "documentId". The Chemistry exception is a CmisInvalidArgumentException. > Does anybody have working code to checkout documents from SP2010? I can't find any samples online. > Thanks, > Dave -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira