Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-142

SimpleReadWriteTests.testCreateDocument incorrect acl assertion?

    XMLWordPrintableJSON

Details

    Description

      AbstractSimpleReadWriteTests (line 116):

      if (supportsManageACLs()) {
      AccessControlEntry ace = getObjectFactory().createAccessControlEntry(getUsername(),
      Collections.singletonList("cmis:read"));
      AccessControlList acl = getObjectFactory().createAccessControlList(
      Collections.singletonList(ace));

      AccessControlList newAcl = getProvider().getAclService().applyAcl(getTestRepositoryId(),
      docId, acl, null, getAclPropagation(), null);
      assertNotNull(newAcl);

      This test case does not provide a removeAces value to applyAcl. Subsequently, in AbstractAtomPubService (line 508) the following check is made:

      if ((removeAces == null) || (removeAces.getAces() == null))

      { throw new IllegalArgumentException("remove ACEs must not be null!"); }

      The above assertion always seem to fail for SimpleReadWriteTests.testCreateDocument.

      Attachments

        Activity

          People

            fmui Florian Müller
            dcaruana David Caruana
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: