<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Document should be uncheckedout after cmis:checkin in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/document-should-be-uncheckedout-after-cmis-checkin/m-p/315334#M2335</link>
    <description>&lt;P&gt;What are the errors recorded sever-side? And as it says "Invalid XML", what is the XML in question?&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2017 11:56:51 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2017-03-27T11:56:51Z</dc:date>
    <item>
      <title>Document should be uncheckedout after cmis:checkin</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/document-should-be-uncheckedout-after-cmis-checkin/m-p/315333#M2334</link>
      <description>&lt;P&gt;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 :&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Bad Request HTTP Statuts 400 - invalidArgument Invalid XML!&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;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).&lt;/P&gt;
&lt;P&gt;List of the HTTP request i send to add and checking a document :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;POST &lt;A href="https://localhost:8080/nuxeo/atom/cmis/default/children?id=706b2066-5340-44bd-b83c-f83188d2cc94" target="test_blank"&gt;https://localhost:8080/nuxeo/atom/cmis/default/children?id=706b2066-5340-44bd-b83c-f83188d2cc94&lt;/A&gt;
PUT &lt;A href="https://localhost:8080/nuxeo/atom/cmis/default/content?id=8fbbd042-f005-413c-9078-32e10c7fdb43" target="test_blank"&gt;https://localhost:8080/nuxeo/atom/cmis/default/content?id=8fbbd042-f005-413c-9078-32e10c7fdb43&lt;/A&gt; 
PUT &lt;A href="https://localhost:8080/nuxeo/atom/cmis/default/entry?id=8fbbd042-f005-413c-9078-32e10c7fdb43&amp;amp;checkin=true&amp;amp;major=false" target="test_blank"&gt;https://localhost:8080/nuxeo/atom/cmis/default/entry?id=8fbbd042-f005-413c-9078-32e10c7fdb43&amp;amp;checkin=true&amp;amp;major=false&lt;/A&gt; (content-Type is "application/atom+xml;type=entry", with or without checkinComment)  
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Document is perfectly created, but checkedout...&lt;/P&gt;
&lt;P&gt;What is wrong in the last HTTP request ? Why it works according to the platform ?&lt;/P&gt;
&lt;P&gt;Thanks for your help&lt;/P&gt;
&lt;P&gt;There is no errors recorded server-side. In the XML, **cmis:isVersionSeriesCheckedOut ** is &lt;STRONG&gt;true&lt;/STRONG&gt; and should be "&lt;STRONG&gt;false&lt;/STRONG&gt;"&lt;/P&gt;
&lt;P&gt;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 :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt; 
&amp;lt;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/"&amp;gt;
&amp;lt;cmisra:object&amp;gt;
 	&amp;lt;cmis:properties&amp;gt; 
		&amp;lt;cmis:propertyBoolean propertyDefinitionId="cmis:isPrivateWorkingCopy"&amp;gt; 			
			&amp;lt;cmis:value&amp;gt;false&amp;lt;/cmis:value&amp;gt; 			
		&amp;lt;/cmis:propertyBoolean&amp;gt; 		
	&amp;lt;/cmis:properties&amp;gt; 	
&amp;lt;/cmisra:object&amp;gt; 
&amp;lt;/atom:entry&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 08:21:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/document-should-be-uncheckedout-after-cmis-checkin/m-p/315333#M2334</guid>
      <dc:creator>Henri_Jacob</dc:creator>
      <dc:date>2017-03-27T08:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Document should be uncheckedout after cmis:checkin</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/document-should-be-uncheckedout-after-cmis-checkin/m-p/315334#M2335</link>
      <description>&lt;P&gt;What are the errors recorded sever-side? And as it says "Invalid XML", what is the XML in question?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 11:56:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/document-should-be-uncheckedout-after-cmis-checkin/m-p/315334#M2335</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2017-03-27T11:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Document should be uncheckedout after cmis:checkin</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/document-should-be-uncheckedout-after-cmis-checkin/m-p/315335#M2336</link>
      <description>&lt;P&gt;I'm not asking for the XML you received before, but the XML you send and to which the server responds with the error.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 08:51:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/document-should-be-uncheckedout-after-cmis-checkin/m-p/315335#M2336</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2017-03-28T08:51:51Z</dc:date>
    </item>
  </channel>
</rss>

