<?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: How to make blockade using behaviours? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-make-blockade-using-behaviours/m-p/144307#M38301</link>
    <description>&lt;P&gt;Thank you &lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/16045"&gt;@afaust&lt;/A&gt;&amp;nbsp;for the tip but unfortunately,&amp;nbsp;&lt;SPAN&gt;AccessDeniedException is also logged (like it's still a WebScriptException)&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;example-addon-acs_1       | 2021-07-12 11:00:44,171  ERROR [extensions.webscripts.AbstractRuntime] [http-nio-8080-exec-2] Exception from executeScript: 06120005 JavaException: org.alfresco.repo.security.permissions.AccessDeniedException: 06120026&lt;SPAN&gt;You do not have permission to check out&lt;/SPAN&gt;
example-addon-acs_1       |  org.springframework.extensions.webscripts.WebScriptException: 06120005 JavaException: org.alfresco.repo.security.permissions.AccessDeniedException: 06120026 You do not have permission to check out &lt;/PRE&gt;</description>
    <pubDate>Mon, 12 Jul 2021 11:06:50 GMT</pubDate>
    <dc:creator>upforsin</dc:creator>
    <dc:date>2021-07-12T11:06:50Z</dc:date>
    <item>
      <title>How to make blockade using behaviours?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-make-blockade-using-behaviours/m-p/144305#M38299</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I created a &lt;EM&gt;behaviour&lt;/EM&gt; that executes some logic to check if the user is privileged to move/delete/update a node (&amp;nbsp;&lt;SPAN&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;BeforeDeleteNodePolicy&lt;/FONT&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;OnUpdatePropertiesPolicy&lt;/FONT&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;BeforeCheckOut&lt;/SPAN&gt;&lt;/FONT&gt;).&lt;/P&gt;&lt;P&gt;If the user is not privileged, it throws &lt;FONT face="courier new,courier"&gt;AlfrescoRuntimeException&lt;/FONT&gt; and then the whole action is canceled. The problem is about the logs which show the stack trace of every AlfrescoRuntimeException&amp;nbsp;thrown in that blockade.&lt;/P&gt;&lt;P&gt;Is there a way not to log those exceptions from the blockade? Or is there another way to cancel a user's action?&lt;/P&gt;&lt;P&gt;The blockade is based on the type and aspects of the node so it can not be done using permissions.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 12:36:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-make-blockade-using-behaviours/m-p/144305#M38299</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2021-07-07T12:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to make blockade using behaviours?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-make-blockade-using-behaviours/m-p/144306#M38300</link>
      <description>&lt;P&gt;You can try to throw AccessDeniedException instead which should hopefully be passed on to the client / caller instead of being logged. Of course the pass-on / logging depends on the code path via which the policies / behaviours are triggered, so it can never be guaranteed that your exception won't be logged anywhere along the call path.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jul 2021 16:28:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-make-blockade-using-behaviours/m-p/144306#M38300</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2021-07-10T16:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to make blockade using behaviours?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-make-blockade-using-behaviours/m-p/144307#M38301</link>
      <description>&lt;P&gt;Thank you &lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/16045"&gt;@afaust&lt;/A&gt;&amp;nbsp;for the tip but unfortunately,&amp;nbsp;&lt;SPAN&gt;AccessDeniedException is also logged (like it's still a WebScriptException)&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;example-addon-acs_1       | 2021-07-12 11:00:44,171  ERROR [extensions.webscripts.AbstractRuntime] [http-nio-8080-exec-2] Exception from executeScript: 06120005 JavaException: org.alfresco.repo.security.permissions.AccessDeniedException: 06120026&lt;SPAN&gt;You do not have permission to check out&lt;/SPAN&gt;
example-addon-acs_1       |  org.springframework.extensions.webscripts.WebScriptException: 06120005 JavaException: org.alfresco.repo.security.permissions.AccessDeniedException: 06120026 You do not have permission to check out &lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Jul 2021 11:06:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-make-blockade-using-behaviours/m-p/144307#M38301</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2021-07-12T11:06:50Z</dc:date>
    </item>
  </channel>
</rss>

