<?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: python CMIS no new version on 5.2 created documents, 6,1 works in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/no-new-version-on-5-2-created-documents-6-1-1-works-cmis-webdav/m-p/95411#M28096</link>
    <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;thank you fo reply.&lt;/P&gt;&lt;P&gt;This is interessting, on new generated files (in 6.1.1) SetContenSstream works fine.&lt;/P&gt;&lt;P&gt;Try to modify my python script. &lt;img id="smileyindifferent" class="emoticon emoticon-smileyindifferent" src="https://connect.hyland.com/i/smilies/16x16_smiley-indifferent.png" alt="Smiley Indifferent" title="Smiley Indifferent" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Aug 2020 17:16:09 GMT</pubDate>
    <dc:creator>samuelw</dc:creator>
    <dc:date>2020-08-11T17:16:09Z</dc:date>
    <item>
      <title>no new version on 5.2 created documents, 6.1.1 works (cmis/webdav)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/no-new-version-on-5-2-created-documents-6-1-1-works-cmis-webdav/m-p/95408#M28093</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;we upgrade our Alfresco from 5.2 to 6.1.1.&lt;/P&gt;&lt;P&gt;To upgrade PDF's we use the python cmis client, which &lt;STRONG&gt;work fine&lt;/STRONG&gt; on n&lt;STRONG&gt;ew created documents in 6.1.1&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;As soon we try to update a document which was created in &lt;STRONG&gt;5.2&lt;/STRONG&gt; only the &lt;STRONG&gt;current version&lt;/STRONG&gt; is &lt;STRONG&gt;updated&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Any idea how I can force to create a new major version with setContentStream?&lt;/P&gt;&lt;PRE&gt;query = "select * from cmis:document where cmis:name like '%%Drawing %s.%%' and IN_TREE('%s')" % (artnr, SITE_ID)

In &lt;STRONG&gt;6.1.1&lt;/STRONG&gt; created document:
workspace://SpacesStore/0f57e9e1-8f89-41c3-a377-72db7ba62f2f;&lt;STRONG&gt;1.2&lt;/STRONG&gt;
newdoc: &amp;lt;cmislib.model.Document object at 0x7ff7c30de390&amp;gt;

workspace://SpacesStore/0f57e9e1-8f89-41c3-a377-72db7ba62f2f;&lt;STRONG&gt;1.3&lt;/STRONG&gt;
newdoc: &amp;lt;cmislib.model.Document object at 0x7fd19c098390&amp;gt;

[...]

In &lt;STRONG&gt;5.2&lt;/STRONG&gt; created document:
workspace://SpacesStore/0f77acbb-cb31-4199-bc6c-07fe44a1e840;&lt;STRONG&gt;1.4&lt;/STRONG&gt;
newdoc: &amp;lt;cmislib.model.Document object at 0x7ff7c30de610&amp;gt;

workspace://SpacesStore/0f77acbb-cb31-4199-bc6c-07fe44a1e840;&lt;STRONG&gt;1.4&lt;/STRONG&gt;
newdoc: &amp;lt;cmislib.model.Document object at 0x7fd19c098610&amp;gt;

[...]


f = open(path, 'rb')
newdoc = result.setContentStream (f)&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Aug 2020 14:06:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/no-new-version-on-5-2-created-documents-6-1-1-works-cmis-webdav/m-p/95408#M28093</guid>
      <dc:creator>samuelw</dc:creator>
      <dc:date>2020-08-11T14:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: python CMIS no new version on 5.2 created documents, 6,1 works</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/no-new-version-on-5-2-created-documents-6-1-1-works-cmis-webdav/m-p/95409#M28094</link>
      <description>&lt;P&gt;Same situation on copy (over existing) pdf via webdav, no new version.&lt;/P&gt;&lt;P&gt;Remove "cm:versionable" via webgui and re-add it and new versions are generated.&lt;/P&gt;&lt;P&gt;Any idea for an workaround?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 14:18:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/no-new-version-on-5-2-created-documents-6-1-1-works-cmis-webdav/m-p/95409#M28094</guid>
      <dc:creator>samuelw</dc:creator>
      <dc:date>2020-08-11T14:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: python CMIS no new version on 5.2 created documents, 6,1 works</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/no-new-version-on-5-2-created-documents-6-1-1-works-cmis-webdav/m-p/95410#M28095</link>
      <description>&lt;P&gt;If you want to create a new version of a document you must actually version the document, not just set the content stream.&lt;/P&gt;
&lt;P&gt;Using cmislib, go look at:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://chemistry.apache.org/python/docs/code.html?highlight=checkout#cmislib.domain.Document.checkout" target="_blank" rel="nofollow noopener noreferrer"&gt;https://chemistry.apache.org/python/docs/code.html?highlight=checkout#cmislib.domain.Document.checkout&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;&lt;A href="https://chemistry.apache.org/python/docs/code.html?highlight=checkout#cmislib.domain.Document.checkin" target="_blank" rel="nofollow noopener noreferrer"&gt;https://chemistry.apache.org/python/docs/code.html?highlight=checkout#cmislib.domain.Document.checkin&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 16:20:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/no-new-version-on-5-2-created-documents-6-1-1-works-cmis-webdav/m-p/95410#M28095</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2020-08-11T16:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: python CMIS no new version on 5.2 created documents, 6,1 works</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/no-new-version-on-5-2-created-documents-6-1-1-works-cmis-webdav/m-p/95411#M28096</link>
      <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;thank you fo reply.&lt;/P&gt;&lt;P&gt;This is interessting, on new generated files (in 6.1.1) SetContenSstream works fine.&lt;/P&gt;&lt;P&gt;Try to modify my python script. &lt;img id="smileyindifferent" class="emoticon emoticon-smileyindifferent" src="https://connect.hyland.com/i/smilies/16x16_smiley-indifferent.png" alt="Smiley Indifferent" title="Smiley Indifferent" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 17:16:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/no-new-version-on-5-2-created-documents-6-1-1-works-cmis-webdav/m-p/95411#M28096</guid>
      <dc:creator>samuelw</dc:creator>
      <dc:date>2020-08-11T17:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: python CMIS no new version on 5.2 created documents, 6,1 works</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/no-new-version-on-5-2-created-documents-6-1-1-works-cmis-webdav/m-p/95412#M28097</link>
      <description>&lt;P&gt;Checkout a document with python is no problem, but I do not know how to checkin a new document.&lt;/P&gt;&lt;P&gt;Do you have a example in python for me?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 18:15:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/no-new-version-on-5-2-created-documents-6-1-1-works-cmis-webdav/m-p/95412#M28097</guid>
      <dc:creator>samuelw</dc:creator>
      <dc:date>2020-08-11T18:15:01Z</dc:date>
    </item>
  </channel>
</rss>

