Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-23641

Page provider resultsCount not correctly computed on mongodb

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 9.3-SNAPSHOT
    • Fix Version/s: 9.10
    • Component/s: Web UI
    • Environment:
      Browser: Chrome
      OS: Mac os
      DB: Docker-compose w/ mongodb:latest (3.4) and redis:latest(4.0)

      Description

      Steps to reproduce on nightly:

      • add 2 documents to a collection
      • Send a GET on https://nightly.nuxeo.com/nuxeo/api/v1/search/pp/ordered_content_collection/execute?currentPageIndex=0&pageSize=40&queryParams= {collectionUid}
      • Observe the response:
        {
            "currentPageIndex": 0, 
            "currentPageOffset": 0, 
            "currentPageSize": 4, 
            "entity-type": "documents", 
            "entries": [
                ...
            ], 
            "errorMessage": null, 
            "hasError": false, 
            "isLastPageAvailable": false, 
            "isNextPageAvailable": false, 
            "isPaginable": true, 
            "isPreviousPageAvailable": false, 
            "isSortable": true, 
            "maxPageSize": 1000, 
            "numberOfPages": 1, 
            "pageCount": 1, 
            "pageIndex": 0, 
            "pageSize": 40, 
            "resultsCount": 1, 
            "resultsCountLimit": 0, 
            "totalSize": 1
        }
        

        see that "currentPageSize": 4 but "resultsCount": 1

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h