03-27-2017 04:21 AM
Hello, I'am using CMIS protocol (1.1) with AtomPub service document to manage different actions for Alfresco, Nuxeo,... The whole works with Alfresco and Nuxeo 5.8. However, with Nuxeo LTS2015, i have a problem during a CHECKIN after a document creation :
Bad Request HTTP Statuts 400 - invalidArgument Invalid XML!
When i'using Apache Chemistry Workbench to test this action, there is no problem, checkin is ok (but Workbench does not use the same method).
List of the HTTP request i send to add and checking a document :
POST https://localhost:8080/nuxeo/atom/cmis/default/children?id=706b2066-5340-44bd-b83c-f83188d2cc94
PUT https://localhost:8080/nuxeo/atom/cmis/default/content?id=8fbbd042-f005-413c-9078-32e10c7fdb43
PUT https://localhost:8080/nuxeo/atom/cmis/default/entry?id=8fbbd042-f005-413c-9078-32e10c7fdb43&checkin... (content-Type is "application/atom+xml;type=entry", with or without checkinComment)
Document is perfectly created, but checkedout...
What is wrong in the last HTTP request ? Why it works according to the platform ?
Thanks for your help
There is no errors recorded server-side. In the XML, **cmis:isVersionSeriesCheckedOut ** is true and should be "false"
I fixed my problem : if the parameter cmis:isPrivateWorkingCopy is forced to false (see the XML below) with the checkin request, all works fine. See the XML below :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<atom:entry xmlns:app="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200908/" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/">
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean propertyDefinitionId="cmis:isPrivateWorkingCopy">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
</cmis:properties>
</cmisra:object>
</atom:entry>
Thank you
03-27-2017 07:56 AM
What are the errors recorded sever-side? And as it says "Invalid XML", what is the XML in question?
03-28-2017 04:51 AM
I'm not asking for the XML you received before, but the XML you send and to which the server responds with the error.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.