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

Fix missing document in page returned by search endpoints

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 8.10-HF11
    • Fix Version/s: None

      Description

      There's a bug in search rest endpoints in LTS 2016-HF11.
      GET https://webui-demo.nuxeo.com/nuxeo/api/v1/search/pp/default_search/execute?currentPageIndex=0&pageSize=40 (Search endpoint) returns:

      {
          ...
          "currentPageIndex": 0, 
          "currentPageSize": 39, 
          ...
          "errorMessage": null, 
          "hasError": false, 
          "isLastPageAvailable": true, 
          "isNextPageAvailable": true, 
          "isPaginable": true, 
          "isPreviousPageAvailable": false, 
          "isSortable": true, 
          "maxPageSize": 1000, 
          "numberOfPages": 71, 
          "pageCount": 71, 
          "pageIndex": 0, 
          "pageSize": 40, 
          ..
          "resultsCount": 2805, 
          "totalSize": 2805
      }
      

      pageSize is 40, isNextPageAvailable is true but currentPageSize is 39 so we are missing a doc in the returned page.

      Note that it the same for https://webui-demo.nuxeo.com/nuxeo/api/v1/query/default_search?currentPageIndex=0&pageSize=40 (Query Endpoint)

      Also note that the bug is not present on master (9.3-SNAPSHOT).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                grenard Guillaume Renard
                Reporter:
                grenard Guillaume Renard
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 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 - 6 hours
                  6h