Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-21421

ACE id parsing must deal with username or group with colon

    Details

      Description

      An exception is encountered while trying to remove a permission associated to a group where the group ID includes ":" characters that conflicts with Nuxeo's internal ACE id format that also uses ":" as a separator.

      The exception below happens while trying to remove permissions for group "ur1:dsi:snum:groupes:groupe2" :

      ****** chain ******  
      Name: Document.RemovePermission  
      Exception: OperationException  
      Caught error: Failed to invoke operation Document.RemovePermission  
      Caused by: java.lang.NumberFormatException: For input string: "groupe2"  
      ****** Hierarchy calls ******  
      org.nuxeo.ecm.automation.core.operations.document.RemovePermission  
        
      at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:232)  
      at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:115)  
      at org.nuxeo.ecm.automation.server.jaxrs.OperationResource.execute(OperationResource.java:51)  
      at org.nuxeo.ecm.automation.server.jaxrs.ExecutableResource.doPost(ExecutableResource.java:61)  
      ... 88 more  
      Caused by: org.nuxeo.ecm.automation.OperationException: Failed to invoke operation Document.RemovePermission  
      at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:182)  
      at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.doInvoke(CompiledChainImpl.java:128)  
      at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.invoke(CompiledChainImpl.java:114)  
      at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:208)  
      ... 91 more  
      Caused by: java.lang.NumberFormatException: For input string: "groupe2"  
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)  
      at java.lang.Long.parseLong(Long.java:589)  
      at java.lang.Long.valueOf(Long.java:803)  
      at org.nuxeo.ecm.core.api.security.ACE.fromId(ACE.java:82)  
      at org.nuxeo.ecm.automation.core.operations.document.RemovePermission.removePermission(RemovePermission.java:83)  
      at org.nuxeo.ecm.automation.core.operations.document.RemovePermission.run(RemovePermission.java:61)  
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
      at java.lang.reflect.Method.invoke(Method.java:497)  
      at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:164)  
      at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:170)  
      ... 94 more
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                PagerDuty

                Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.