Public bug reported:

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:
http://docs.openstack.org/api/openstack-compute/2/content
/Paginated_Collections-d1e664.html

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 flavors and images. For example, if you execute
"/v2/<tenant>/flavors/detail?limit=1", the "next" link does not have the
URL for a detailed query and is formatted as
"/v2/<tenant>/flavors?limit=1&marker=<marker>". In this case the "next"
link needs to be scoped to "/v2/<tenant>/flavors/detail".

Bug 1299247 fixed this for servers only. This bug is for the other nova
APIs, specifically flavors and images.

** Affects: nova
     Importance: Undecided
     Assignee: Steven Kaufer (kaufer)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Steven Kaufer (kaufer)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1410431

Title:
  GET details REST API next link missing 'details' for flavors and
  images

Status in OpenStack Compute (Nova):
  New

Bug description:
  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:
  http://docs.openstack.org/api/openstack-compute/2/content
  /Paginated_Collections-d1e664.html

  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 flavors and images. For example, if you execute
  "/v2/<tenant>/flavors/detail?limit=1", the "next" link does not have
  the URL for a detailed query and is formatted as
  "/v2/<tenant>/flavors?limit=1&marker=<marker>". In this case the
  "next" link needs to be scoped to "/v2/<tenant>/flavors/detail".

  Bug 1299247 fixed this for servers only. This bug is for the other
  nova APIs, specifically flavors and images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1410431/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to