<?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: Delete does not work as expexted in a JavaEE transaction in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/delete-does-not-work-as-expexted-in-a-javaee-transaction/m-p/60315#M21203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This comment does not directly address your problem, but you should know that this line is asking for trouble:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Document document = (Document) session&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.getObject(documentId + ((null == version || version.equals("")) ? "" : ";" + version));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CMIS object ID's are defined by the spec to be opaque. Just because that string at the end looks like a version ID does not mean you should interpret it that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alfresco could decide to change their object ID format at any time with no notice. Also, this wouldn't work with other repositories, which is one of the points of CMIS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Dec 2018 03:42:49 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2018-12-21T03:42:49Z</dc:date>
    <item>
      <title>Delete does not work as expexted in a JavaEE transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/delete-does-not-work-as-expexted-in-a-javaee-transaction/m-p/60314#M21202</link>
      <description>We have implemented a library for interacting Alfresco with CMIS 1.1 library. We implemented all add/update/delete... methods. In production two times in a year we had the case where a delete didn't work as expected.Here is the delete method of the library:@Override public void deleteById(String doc</description>
      <pubDate>Wed, 19 Dec 2018 07:37:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/delete-does-not-work-as-expexted-in-a-javaee-transaction/m-p/60314#M21202</guid>
      <dc:creator>paner</dc:creator>
      <dc:date>2018-12-19T07:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Delete does not work as expexted in a JavaEE transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/delete-does-not-work-as-expexted-in-a-javaee-transaction/m-p/60315#M21203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This comment does not directly address your problem, but you should know that this line is asking for trouble:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Document document = (Document) session&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.getObject(documentId + ((null == version || version.equals("")) ? "" : ";" + version));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CMIS object ID's are defined by the spec to be opaque. Just because that string at the end looks like a version ID does not mean you should interpret it that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alfresco could decide to change their object ID format at any time with no notice. Also, this wouldn't work with other repositories, which is one of the points of CMIS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2018 03:42:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/delete-does-not-work-as-expexted-in-a-javaee-transaction/m-p/60315#M21203</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-12-21T03:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Delete does not work as expexted in a JavaEE transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/delete-does-not-work-as-expexted-in-a-javaee-transaction/m-p/60316#M21204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Jeff for your answer, i understand what you are saying and we are planning to fix it, any idea about the case above?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inside a transaction we do stuff with the db and send a delete to alfresco, two times we have the case of interacting successfully with the db but the document stays in alfresco.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2018 07:06:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/delete-does-not-work-as-expexted-in-a-javaee-transaction/m-p/60316#M21204</guid>
      <dc:creator>paner</dc:creator>
      <dc:date>2018-12-21T07:06:29Z</dc:date>
    </item>
  </channel>
</rss>

