chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Bosdonnat (JIRA) <>
Subject [jira] [Commented] (CMIS-362) Cannot checkout documents from SharePoint 2010 repository using REST
Date Mon, 11 Jun 2012 12:15:43 GMT


Cédric Bosdonnat commented on CMIS-362:

After some tries for libcmis, I found out the following:

  * The URL needs to contain the objectId parameter. The CMIS specification is pretty vague
on that aspect as it shouldn't be necessary, but it's still considered an input parameter
in the Service description.
  * The content of the entry can be limited to the cmis:objectId property... in the way it
is specified.

Here is a request that works properly for SharePoint 2010

POST /_vti_bin/cmis/rest/43036e79-ede2-4217-940c-009343f4439c?getCheckedoutDocs&objectId=3-1
Accept: */*
Content-Length: 537

<?xml version="1.0"?>
<atom:entry xmlns:atom="" xmlns:cmis=""
         <cmis:propertyId propertyDefinitionId="cmis:objectId" localName="cmis:objectId"
displayName="cmis:objectId" queryName="cmis:objectId"><cmis:value>3-1</cmis:value></cmis:propertyId>

I hope this may help.
> Cannot checkout documents from SharePoint 2010 repository using REST
> --------------------------------------------------------------------
>                 Key: CMIS-362
>                 URL:
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client
>    Affects Versions: OpenCMIS 0.3.0
>            Reporter: David Miller
>            Assignee: Florian Müller
> 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
> Thanks,
> Dave

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message