<?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: Permissions for groups - bug report and patch in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/permissions-for-groups-bug-report-and-patch/m-p/325685#M12686</link>
    <description>&lt;P&gt;The next hotfix version will include the correction.&lt;/P&gt;</description>
    <pubDate>Sat, 07 Jan 2017 18:25:56 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2017-01-07T18:25:56Z</dc:date>
    <item>
      <title>Permissions for groups - bug report and patch</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/permissions-for-groups-bug-report-and-patch/m-p/325679#M12680</link>
      <description>&lt;P&gt;I submit a bug report+patch here because I could not find out how to get a JIRA account.&lt;/P&gt;
&lt;P&gt;We encountered an exception while trying to remove a permission associated to a group. The issue is related to the group ID format that includes ":" characters that conflicts with Nuxeo's ACE format that also uses ":" as a separator.&lt;/P&gt;
&lt;P&gt;The exception we get while trying to remove permissions for group "ur1:dsi:snum:groupes:groupe2" :
****** chain ******&lt;BR /&gt; /&amp;gt;
Name: Document.RemovePermission&lt;BR /&gt; /&amp;gt;
Exception: OperationException&lt;BR /&gt; /&amp;gt;
Caught error: Failed to invoke operation Document.RemovePermission&lt;BR /&gt; /&amp;gt;
Caused by: java.lang.NumberFormatException: For input string: "groupe2"&lt;BR /&gt; /&amp;gt;
****** Hierarchy calls ******&lt;BR /&gt; /&amp;gt;
org.nuxeo.ecm.automation.core.operations.document.RemovePermission&lt;/P&gt;
&lt;P&gt;at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:232)&lt;BR /&gt; /&amp;gt;
at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:115)&lt;BR /&gt; /&amp;gt;
at org.nuxeo.ecm.automation.server.jaxrs.OperationResource.execute(OperationResource.java:51)&lt;BR /&gt; /&amp;gt;
at org.nuxeo.ecm.automation.server.jaxrs.ExecutableResource.doPost(ExecutableResource.java:61)&lt;BR /&gt; /&amp;gt;
... 88 more&lt;BR /&gt; /&amp;gt;
Caused by: org.nuxeo.ecm.automation.OperationException: Failed to invoke operation Document.RemovePermission&lt;BR /&gt; /&amp;gt;
at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:182)&lt;BR /&gt; /&amp;gt;
at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.doInvoke(CompiledChainImpl.java:128)&lt;BR /&gt; /&amp;gt;
at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.invoke(CompiledChainImpl.java:114)&lt;BR /&gt; /&amp;gt;
at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:208)&lt;BR /&gt; /&amp;gt;
... 91 more&lt;BR /&gt; /&amp;gt;
Caused by: java.lang.NumberFormatException: For input string: "groupe2"&lt;BR /&gt; /&amp;gt;
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)&lt;BR /&gt; /&amp;gt;
at java.lang.Long.parseLong(Long.java:589)&lt;BR /&gt; /&amp;gt;
at java.lang.Long.valueOf(Long.java:803)&lt;BR /&gt; /&amp;gt;
at org.nuxeo.ecm.core.api.security.ACE.fromId(ACE.java:82)&lt;BR /&gt; /&amp;gt;
at org.nuxeo.ecm.automation.core.operations.document.RemovePermission.removePermission(RemovePermission.java:83)&lt;BR /&gt; /&amp;gt;
at org.nuxeo.ecm.automation.core.operations.document.RemovePermission.run(RemovePermission.java:61)&lt;BR /&gt; /&amp;gt;
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt; /&amp;gt;
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt; /&amp;gt;
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt; /&amp;gt;
at java.lang.reflect.Method.invoke(Method.java:497)&lt;BR /&gt; /&amp;gt;
at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:164)&lt;BR /&gt; /&amp;gt;
at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:170)&lt;BR /&gt; /&amp;gt;
... 94 more&lt;/P&gt;
&lt;P&gt;Attached is a patch that preserves the groupId within an ACE; the aceId is analyzed using a regular expression instead of split().&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 15:36:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/permissions-for-groups-bug-report-and-patch/m-p/325679#M12680</guid>
      <dc:creator>Olivier_Salaün</dc:creator>
      <dc:date>2017-01-05T15:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions for groups - bug report and patch</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/permissions-for-groups-bug-report-and-patch/m-p/325680#M12681</link>
      <description>&lt;P&gt;Hello. Best way to submit a patch is to create a Pull Request on Github (https&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 15:50:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/permissions-for-groups-bug-report-and-patch/m-p/325680#M12681</guid>
      <dc:creator>Guillaume_Renar</dc:creator>
      <dc:date>2017-01-05T15:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions for groups - bug report and patch</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/permissions-for-groups-bug-report-and-patch/m-p/325681#M12682</link>
      <description>&lt;P&gt;Thank you for your quick answer.
I will do a submit a pull request for this.&lt;/P&gt;
&lt;P&gt;Regarding the relevance of this proposal, I forgot to mention that our Nuxeo platform is configured to use external users and groups defined in our LDAP directory. This type of group IDs were correctly supported with Nuxeo 5.8 and we can't afford to change our groups naming schema because it would have consequences for all LDAP consuming apps.&lt;/P&gt;
&lt;P&gt;Note also that the proposed code change does not break the ACE format logic; it just makes the ACE parser more precise and therefore more robust to unexpected username/group ID formats.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 16:18:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/permissions-for-groups-bug-report-and-patch/m-p/325681#M12682</guid>
      <dc:creator>Olivier_Salaün</dc:creator>
      <dc:date>2017-01-05T16:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions for groups - bug report and patch</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/permissions-for-groups-bug-report-and-patch/m-p/325682#M12683</link>
      <description>&lt;P&gt;The colon is the default separator used in the nuxeo-platform-shibboleth-groups-web addon (tree view of groups).&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 18:17:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/permissions-for-groups-bug-report-and-patch/m-p/325682#M12683</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2017-01-05T18:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions for groups - bug report and patch</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/permissions-for-groups-bug-report-and-patch/m-p/325683#M12684</link>
      <description>&lt;P&gt;Thanks for the pull request. Please see my comments on it.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 20:33:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/permissions-for-groups-bug-report-and-patch/m-p/325683#M12684</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2017-01-05T20:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions for groups - bug report and patch</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/permissions-for-groups-bug-report-and-patch/m-p/325684#M12685</link>
      <description>&lt;P&gt;[NXP-21421](https&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 20:34:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/permissions-for-groups-bug-report-and-patch/m-p/325684#M12685</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2017-01-05T20:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions for groups - bug report and patch</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/permissions-for-groups-bug-report-and-patch/m-p/325685#M12686</link>
      <description>&lt;P&gt;The next hotfix version will include the correction.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2017 18:25:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/permissions-for-groups-bug-report-and-patch/m-p/325685#M12686</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2017-01-07T18:25:56Z</dc:date>
    </item>
  </channel>
</rss>

