chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Miller (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CMIS-362) Cannot checkout documents from SharePoint 2010 repository using REST
Date Thu, 05 May 2011 12:02:03 GMT

    [ 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

Mime
View raw message