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

Wrong assertNotNull ALLOWABLE_ACTIONS on created folder entry without includeAllowableActions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.1.0-incubating
    • tck
    • None
    • AccessControlListTest.testManageAccessControlList()

    Description

      You did a create folder within CMISTestFixture.getTestCaseFolder
      without includeAllowableActions param.
      SPEC says:
      3212 • Boolean includeAllowableActions: If TRUE, then the Repository MUST return the
      available actions for each object in the result set. Defaults to FALSE.
      3213

      then store it to the "entry" field at:
      CMISTestFixture.createTree(Entry, Entry, int, int, String, String) line: 103
      CMISTestFixture.createTestTree(String, int, int, String, String) line: 94
      AccessControlListTest.testManageAccessControlList() line: 131

      then use it at:
      ManageAccessControlListVisitor.visit(EntryTree) line: 68
      EntryTree.walkEntry(EntryTree, EntryTree$TreeVisitor) line: 126
      EntryTree.walkTree(EntryTree$TreeVisitor) line: 118
      AccessControlListTest.testManageAccessControlList() line: 132

      // Check whether apply ACL is an allowable action
      CMISAllowableActions objectAllowableActions = childObject.getExtension(CMISConstants.ALLOWABLE_ACTIONS);
      Assert.assertNotNull(objectAllowableActions); // <=== here is should be null

      Attachments

        Issue Links

          Activity

            People

              dcaruana David Caruana
              exoman Alexey Zavizionov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: