Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-19630

CMIS: Unable to call getAllVersions() if node is checked out and if binding type is WSDL

    Details

    • Type: Service Pack Request
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 5.2.2, 6.0
    • Fix Version/s: 5.2.5, 6.0.1
    • Component/s: CMIS, Versioning
    • Labels:
    • Environment:
      Alfresco 5.2.2
    • Bug Priority:
      Category 2
    • ACT Numbers:

      00963595

    • RCA Cause:
      Lack of code review
    • RCA Quality:
      Use case not considered, Missing test(s)
    • RCA Description:
      Hide
      The issue is due to a fix introduced in MNT-13839 while the code being partially changed later in MNT-15338. This latter change made the previous fix to fail in case of CheckedOut documents when using CMIS WS Binding.
      Show
      The issue is due to a fix introduced in MNT-13839 while the code being partially changed later in MNT-15338 . This latter change made the previous fix to fail in case of CheckedOut documents when using CMIS WS Binding.

      Description

      Summary

      Exception: org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Version Series does not exist! is thrown when calling getAllVersions() on a checkedout node.

      Steps to reproduce

      1. Create document1
      2. Create a few versions for document1
      3. Check out document1
      4. Via CMIS Workbench, execute the groovy below using WSDL binding: http://localhost:8080/alfresco/cmisws/cmis?wsdl
        Document doc = (Document) session.getObjectByPath('/document1.txt');
        
        List<Document> versions = doc.getAllVersions();
        
        for(Document ver : versions){  
              println("Version Label: " + ver.versionLabel)
              println("Series ID: " + ver.versionSeriesId);
              println();
          }
        

      Actual result
      ERROR:

      org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Version Series does not exist!

      See ERROR.png attached.

      Expected result

      Version Label: pwc
      Series ID: 2d9ddcb6-2b09-4813-8d04-2257eb6dafa4
      
      Version Label: 1.1
      Series ID: 2d9ddcb6-2b09-4813-8d04-2257eb6dafa4
      
      Version Label: 1.0
      Series ID: 2d9ddcb6-2b09-4813-8d04-2257eb6dafa4

      Notes

      • Only fails if using WSDL binding type
      • Works if node is not checked out
      • Works if using atom/browser binding type.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs (Inactive)
                  Reporter:
                  rvellozo Ricardo Vellozo
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel