pagination for list operations behaves inconsistently
Bug #1775415 reported by
Sascha Giebner
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
Undecided
|
Unassigned |
Bug Description
Using pagination with Neutron API behaves inconsistently with documented behavior.
Next/previous links are not what they should be.
Observed behavior:
GET call "floatingips?
GET call "networks?
It seems that either the links are generated in a faulty manner or the wrong page is returned (should be 1st page).
We are using version 2.0
Thx and best regards,
Sascha
Changed in neutron: | |
status: | New → Incomplete |
To post a comment you must log in.
It looks there are two issues have been raised:
1. The first page with "page_reverse= False" should not contain the previous link.
2. The response of "floatingips" and "networks" is inconsistent.
For #1, according to neutron API reference [1], the sample response of the first page does contain the "previous" link. Therefore, the behavior is compliance with document.
For #2, I couldn't reproduce it in my environment. Below are the responses when I tried to paginate "floatingips" and "networks". Both responses contains the "next" link and the behavior looks consistent:
* floatingips: http:// paste.openstack .org/show/ 722814/ paste.openstack .org/show/ 722815/
* networks: http://
[1] https:/ /developer. openstack. org/api- ref/network/ v2/#pagination