Uploaded image for project: 'Nuxeo Java Client'
  1. Nuxeo Java Client
  2. JAVACLIENT-90

Fix NPE when begin and end dates are null on ACE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: API

      Description

      When adding a permission to a Document, if the ACE object in params has begin and end attributes null, it causes a NPE. It disallows infinite permission.

      java.lang.NullPointerException
      	at org.nuxeo.client.api.objects.acl.ACE.getBeginAsString(ACE.java:152)
      	at org.nuxeo.client.api.objects.Document.setPermissionAutomationParameters(Document.java:402)
      	at org.nuxeo.client.api.objects.Document.addPermission(Document.java:396)
      	at org.nuxeo.functionaltests.RestHelper.addPermission(RestHelper.java:188)
      

        Attachments

          Issue Links

            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.