Bug 994537 - 'lastPage' paging header is wrong
Summary: 'lastPage' paging header is wrong
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: REST
Version: 4.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHQ 4.9
Assignee: Heiko W. Rupp
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-07 13:12 UTC by Heiko W. Rupp
Modified: 2014-03-26 08:31 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-26 08:31:35 UTC
Embargoed:


Attachments (Terms of Use)

Description Heiko W. Rupp 2013-08-07 13:12:21 UTC
When you have a number of resources that is a multiple of the page size, then the last page is computed wrong.

Consider 405 resources and a ps of 5, then getting the last page from a previous call to "getbyquery" results in 


{
    "message": "PageList was passed an empty collection but 'totalSize' was 405, PageControl[page=81, size=5, sort[name ASC, id ASC]]"
}


which is logical, as the resources 400-404 are already on page 80 (with page numbering starting at 0)

Comment 1 Heiko W. Rupp 2013-08-08 20:17:09 UTC
master 1ccc454cc27162

Comment 2 Heiko W. Rupp 2014-03-26 08:31:35 UTC
Bulk closing now that 4.10 is out.

If you think an issue is not resolved, please open a new BZ and link to the existing one.


Note You need to log in before you can comment on or make changes to this bug.