<?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 Nuxeo 5.8 Regression on Login As - Logout and set temporary ACL in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-5-8-regression-on-login-as-logout-and-set-temporary-acl/m-p/316106#M3107</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;On Nuxeo 5.6 I had a code that worked.&lt;/P&gt;
&lt;P&gt;Context : a folder fofo where a user Auser had'nt any rights. I used an automation chain&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;User&amp;amp;group&amp;gt;login as Administrator&lt;/LI&gt;
&lt;LI&gt;set temporary acl "mycustom" on this folder fofo to this user Auser.&lt;/LI&gt;
&lt;LI&gt;Logout from Administrator&lt;/LI&gt;
&lt;LI&gt;Auser create a doc fofodoc in fofo&lt;/LI&gt;
&lt;LI&gt;Login as Administrator&lt;/LI&gt;
&lt;LI&gt;add some ACL on fofodoc to Auser&lt;/LI&gt;
&lt;LI&gt;remove temporary acl "mycustom" from Auser on fofo&lt;/LI&gt;
&lt;LI&gt;Logout from Administrator&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;On Nuxeo 5.8 this SAME code doesn't work anymore.
It said 2 messages :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;caused by: org.nuxeo.ecm.automation.OperationException: Failed to invoke operation Auth.Logout&lt;/LI&gt;
&lt;LI&gt;caused by: org.nuxeo.ecm.core.api.DocumentSecurityException: Privilege 'Read' is not granted&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;So the code stopped directly after the first set ACL to true and Auth.Logout...&lt;/P&gt;
&lt;P&gt;Is this a bug or new process in nuxeo 5.8 appeared ?&lt;/P&gt;
&lt;P&gt;My only solution was to :&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;grant ACL on "local" and not "mycustom" ACL for fofo with "NO overwite"&lt;/LI&gt;
&lt;LI&gt;then remove ACL on "local" "with overwrite" on fofo&lt;/LI&gt;
&lt;LI&gt;set acl on docfofo "with NO OVERWRITE"&lt;/LI&gt;
&lt;LI&gt;not removing any special ACL because custom ACL not working, just "local" works with all this special option on overwrite and not overwrite&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;thanks in advance&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2014 16:59:20 GMT</pubDate>
    <dc:creator>milonette_</dc:creator>
    <dc:date>2014-02-19T16:59:20Z</dc:date>
    <item>
      <title>Nuxeo 5.8 Regression on Login As - Logout and set temporary ACL</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-5-8-regression-on-login-as-logout-and-set-temporary-acl/m-p/316106#M3107</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;On Nuxeo 5.6 I had a code that worked.&lt;/P&gt;
&lt;P&gt;Context : a folder fofo where a user Auser had'nt any rights. I used an automation chain&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;User&amp;amp;group&amp;gt;login as Administrator&lt;/LI&gt;
&lt;LI&gt;set temporary acl "mycustom" on this folder fofo to this user Auser.&lt;/LI&gt;
&lt;LI&gt;Logout from Administrator&lt;/LI&gt;
&lt;LI&gt;Auser create a doc fofodoc in fofo&lt;/LI&gt;
&lt;LI&gt;Login as Administrator&lt;/LI&gt;
&lt;LI&gt;add some ACL on fofodoc to Auser&lt;/LI&gt;
&lt;LI&gt;remove temporary acl "mycustom" from Auser on fofo&lt;/LI&gt;
&lt;LI&gt;Logout from Administrator&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;On Nuxeo 5.8 this SAME code doesn't work anymore.
It said 2 messages :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;caused by: org.nuxeo.ecm.automation.OperationException: Failed to invoke operation Auth.Logout&lt;/LI&gt;
&lt;LI&gt;caused by: org.nuxeo.ecm.core.api.DocumentSecurityException: Privilege 'Read' is not granted&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;So the code stopped directly after the first set ACL to true and Auth.Logout...&lt;/P&gt;
&lt;P&gt;Is this a bug or new process in nuxeo 5.8 appeared ?&lt;/P&gt;
&lt;P&gt;My only solution was to :&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;grant ACL on "local" and not "mycustom" ACL for fofo with "NO overwite"&lt;/LI&gt;
&lt;LI&gt;then remove ACL on "local" "with overwrite" on fofo&lt;/LI&gt;
&lt;LI&gt;set acl on docfofo "with NO OVERWRITE"&lt;/LI&gt;
&lt;LI&gt;not removing any special ACL because custom ACL not working, just "local" works with all this special option on overwrite and not overwrite&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:59:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-5-8-regression-on-login-as-logout-and-set-temporary-acl/m-p/316106#M3107</guid>
      <dc:creator>milonette_</dc:creator>
      <dc:date>2014-02-19T16:59:20Z</dc:date>
    </item>
  </channel>
</rss>

