Details

    • Bug Priority:
      Category 1
    • ACT Numbers:

      00957773

    • Sprint:
      Nublar+Sorna 2: Dilophosaurus
    • Work Funnel End:
      2018-06
    • Story Points:
      3

      Description

      Summary

      The issue here is that as soon as you apply the RM amp, calling getTotalNumItems() on the Interface ItemIterable will always return 0 while calling hasMoreItems() returns true.

      Steps to reproduce

      1. Install RM 2.5.3 on 5.2.2
      2. Execute the groovy query as below:
      import org.apache.chemistry.opencmis.commons.* 
      import org.apache.chemistry.opencmis.commons.data.* 
      import org.apache.chemistry.opencmis.commons.enums.* 
      import org.apache.chemistry.opencmis.client.api.* 
      
      String cql = "SELECT cmis:name FROM cmis:document" 
      
      ItemIterable<QueryResult> results = session.query(cql, false) 
      
      results.each { hit -> 
      hit.properties.each { println "${it.queryName}: ${it.firstValue}" } 
      println "--------------------------------------" 
      } 
      
      println "--------------------------------------" 
      println "Total number: ${results.getTotalNumItems()}" 
      println "Has more: ${results.hasMoreItems}" 
      println "--------------------------------------" 
      

      Actual result
      Total number: 0
      Has more: true
      See screenshot attached

      Expected result
      Total number: 100
      Has more: true

      Notes

      • I've also tested it using the Outlook integration AMP and the total items is correct
      • Without RM AMP total items also returns > 0

        Attachments

          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:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 days
                  3d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 4 hours Time Not Required
                  2d 4h

                    Structure Helper Panel