<?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 creation handler succeeds from UI but fails from CMIS document creation in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/document-creation-handler-succeeds-from-ui-but-fails-from-cmis/m-p/315013#M2014</link>
    <description>&lt;P&gt;I solved this issue by filtering the event in Nuxeo Studio to only fire when "Current document is: Mutable Document."&lt;/P&gt;
&lt;P&gt;I guess the CMIS createDocument must fire off multiple events for document creation, one containing a live document and one containing a version? Is this expected behavior?&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2013 14:37:48 GMT</pubDate>
    <dc:creator>Steven_Huwig1</dc:creator>
    <dc:date>2013-06-26T14:37:48Z</dc:date>
    <item>
      <title>Document creation handler succeeds from UI but fails from CMIS document creation</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/document-creation-handler-succeeds-from-ui-but-fails-from-cmis/m-p/315012#M2013</link>
      <description>&lt;P&gt;What needs to be done in order to avoid the following error from a operation event handler?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentVersion$VersionNotModifiableException: Cannot set property on a version:
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;My code works correctly when documents are created from the UI -- it sets additional metadata based on web service call results, similar to the &lt;A href="http://www.nuxeo.com/blog/development/2013/02/qa-friday-external-web-service-call-included-automation-chain/"&gt;external web service example&lt;/A&gt; on the Nuxeo blog.&lt;/P&gt;
&lt;P&gt;However when I attempt to use &lt;A href="http://chemistry.apache.org/python/cmislib.html"&gt;cmislib&lt;/A&gt;'s createDocument call, the &lt;CODE&gt;VersionNotModifiableException&lt;/CODE&gt; error is returned when Document.Save is called on the modified object.&lt;/P&gt;
&lt;P&gt;Is there something I should be doing in my Operation, or some special property or set of properties I should be setting on the createDocument call?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2013 23:02:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/document-creation-handler-succeeds-from-ui-but-fails-from-cmis/m-p/315012#M2013</guid>
      <dc:creator>Steven_Huwig1</dc:creator>
      <dc:date>2013-06-25T23:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Document creation handler succeeds from UI but fails from CMIS document creation</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/document-creation-handler-succeeds-from-ui-but-fails-from-cmis/m-p/315013#M2014</link>
      <description>&lt;P&gt;I solved this issue by filtering the event in Nuxeo Studio to only fire when "Current document is: Mutable Document."&lt;/P&gt;
&lt;P&gt;I guess the CMIS createDocument must fire off multiple events for document creation, one containing a live document and one containing a version? Is this expected behavior?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2013 14:37:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/document-creation-handler-succeeds-from-ui-but-fails-from-cmis/m-p/315013#M2014</guid>
      <dc:creator>Steven_Huwig1</dc:creator>
      <dc:date>2013-06-26T14:37:48Z</dc:date>
    </item>
  </channel>
</rss>

