-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Duplicate
-
Affects Version/s: 8.10-HF11
-
Fix Version/s: None
-
Component/s: Query & PageProvider, Rest API
-
Tags:
-
Sprint:nxGang Sprint 9.3.3
-
Story Points:2
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).
- duplicates
-
NXP-21968 Don't index root document
- Resolved