The caller should be able to invoke the "next" link (without
having to re-format it) in order to get the next page of data.
The documentation states "Subsequent links will honor the
initial page size. Thus, a client may follow links to traverse
a paginated collection without having to input the marker parameter."
The problem is that the "next" link is always scoped to the
non-detailed query.
For example, if you execute "/v2/<tenant>/servers/detail?limit=1",
the "next" link does not have the URL for a detailed query and is
formatted as "/v2/<tenant>/servers?limit=1&marker=<marker>". In this
case the "next" link needs to be scoped to "/v2/<tenant>/servers/detail".
Common code is used for both the v2 and v3 APIs.
Existing test cases will be updated to verify that the next link is
correctly scoped for both the v2 and v3 APIs.
The user could work around this issue my manually inserting '/details'
into the "next" link URL.
Reviewed: https:/ /review. openstack. org/84308 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=65a2221a813 ee5e295fbd03453 61cf53d0914514
Committed: https:/
Submitter: Jenkins
Branch: master
commit 65a2221a813ee5e 295fbd0345361cf 53d0914514
Author: Steven Kaufer <email address hidden>
Date: Tue Apr 1 01:34:27 2014 +0000
GET details REST API next link missing 'details'
When executing a pagination query a "next" link is included in the
API reply when there are more items then the specified limit.
See pagination documentation for more information: docs.openstack. org/api/ openstack- compute/ 2/content/ Collections- d1e664. html
http://
Paginated_
The caller should be able to invoke the "next" link (without
having to re-format it) in order to get the next page of data.
The documentation states "Subsequent links will honor the
initial page size. Thus, a client may follow links to traverse
a paginated collection without having to input the marker parameter."
The problem is that the "next" link is always scoped to the
non-detailed query.
For example, if you execute "/v2/<tenant> /servers/ detail? limit=1" , /servers? limit=1& marker= <marker> ". In this /servers/ detail" .
the "next" link does not have the URL for a detailed query and is
formatted as "/v2/<tenant>
case the "next" link needs to be scoped to "/v2/<tenant>
Common code is used for both the v2 and v3 APIs.
Existing test cases will be updated to verify that the next link is
correctly scoped for both the v2 and v3 APIs.
The user could work around this issue my manually inserting '/details'
into the "next" link URL.
Change-Id: Ib06a6cc6e2dd5e 2c8c16986ee256a 58752626eb9
Closes-bug: 1299247