David Matteson created CLOUDSTACK-1412: ------------------------------------------
Summary: listUsageRecords will loop data if requested page is beyond what is available Key: CLOUDSTACK-1412 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1412 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Components: API Affects Versions: 4.0.0 Environment: CentOS 6.3 x86_64 Reporter: David Matteson When calling listUsageRecords requesting a page beyond what is available will cause the returned data to loop back to the beginning. This appears to go on indefinitely. For example, if there are 3 pages of results matching the date range and given criteria, and I request page 4, I will get page 1's data again. Page 5 returns page 2, and so on ad infinitum. The preferred behavior (at least from my perspective) would be requesting a page beyond what is available returns null. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira