<?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 Problem with copiedFrom Aspect and Actions in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-copiedfrom-aspect-and-actions/m-p/244105#M197235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have the following structure:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Template1 (read access for admin only)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Template2 copied from Template1 from admin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Folder1 copied from Template2 as user. This folder gets an action.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to delete Folder1 as user I get an AccessDeniedException. This is due to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the action in Folder1. On deletion it is checked that all rules are executed, following&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;back all copiedFrom links. As I have no read access to Template1 the exception is thrown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure why this check is necessary - maybe someone can give me a hint?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't want to give read access to Template1, so the other option seems to remove&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the copiedFrom aspect. Is it save to do so, or will it break something else?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Heike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2009 08:36:19 GMT</pubDate>
    <dc:creator>hf409</dc:creator>
    <dc:date>2009-10-07T08:36:19Z</dc:date>
    <item>
      <title>Problem with copiedFrom Aspect and Actions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-copiedfrom-aspect-and-actions/m-p/244105#M197235</link>
      <description>Hi all,i have the following structure:- Template1 (read access for admin only)- Template2 copied from Template1 from admin- Folder1 copied from Template2 as user. This folder gets an action.When I try to delete Folder1 as user I get an AccessDeniedException. This is due tothe action in Folder1. On d</description>
      <pubDate>Wed, 07 Oct 2009 08:36:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-copiedfrom-aspect-and-actions/m-p/244105#M197235</guid>
      <dc:creator>hf409</dc:creator>
      <dc:date>2009-10-07T08:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with copiedFrom Aspect and Actions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-copiedfrom-aspect-and-actions/m-p/244106#M197236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the following business:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When deleting a node i must delete all its created copies if found. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What i did is create a class OnDeleteDocumentTrigger that implements BeforeDeleteNodePolicy then using the CopyService i used the function getCopies that will retrieve all the copied node UUID (Till now all is running correctly and all the nodes are retrived) then trying to delete the retrieved nodes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that the copied nodes are not deleted neither its parent node(originator) and i am getting the following error in FireBug:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JavaException: org.springframework.dao.ConcurrencyFailureException: Deleted 0 but expected 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wissam.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 10:20:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-copiedfrom-aspect-and-actions/m-p/244106#M197236</guid>
      <dc:creator>wissam_aboujaou</dc:creator>
      <dc:date>2013-05-17T10:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with copiedFrom Aspect and Actions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-copiedfrom-aspect-and-actions/m-p/244107#M197237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had solved the problem by using the Alfesco way ActionExecutor that will execute an action to delete all the node.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what was happening as i noticed is that Alfresco is trying to delete a node and at the same time using the same process i am trying to delete other nodes and that created a dead lock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 13:21:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-copiedfrom-aspect-and-actions/m-p/244107#M197237</guid>
      <dc:creator>wissam_aboujaou</dc:creator>
      <dc:date>2013-05-23T13:21:00Z</dc:date>
    </item>
  </channel>
</rss>

