Public bug reported:

Overview:
When attempting a list images request passing 'id' as a sort_key returns a list 
of images that are not in the correct order.  Even when passing the sort_dir of 
asc or desc, the order is still incorrect.

Steps to reproduce:
1) List images passing 'id' as a sort_key via:
curl -i '<endpoint>/v2/images?sort_key=id' -X GET -H "Content-Type: 
application/json" -H "Accept: application/json" -H "X-Auth-Token: <token>"
2) Notice that the list of images returned is not in the correct order
3) List images passing 'id' as a sort_key and asc or desc as the sort_dir via:
curl -i '<endpoint>/v2/images?sort_key=id&sort_dir=asc' -X GET -H 
"Content-Type: application/json" -H "Accept: application/json" -H 
"X-Auth-Token: <token>"
4) Notice that the list of images returned is still not in the correct order

Expected:
A list of images correctly sorted by the 'id' property value

Actual:
A list of images is returned, but not correctly ordered, either asc or desc

** Affects: glance
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1440170

Title:
  List images passing id as a sort_key returns an incorrectly ordered
  list of images

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  Overview:
  When attempting a list images request passing 'id' as a sort_key returns a 
list of images that are not in the correct order.  Even when passing the 
sort_dir of asc or desc, the order is still incorrect.

  Steps to reproduce:
  1) List images passing 'id' as a sort_key via:
  curl -i '<endpoint>/v2/images?sort_key=id' -X GET -H "Content-Type: 
application/json" -H "Accept: application/json" -H "X-Auth-Token: <token>"
  2) Notice that the list of images returned is not in the correct order
  3) List images passing 'id' as a sort_key and asc or desc as the sort_dir via:
  curl -i '<endpoint>/v2/images?sort_key=id&sort_dir=asc' -X GET -H 
"Content-Type: application/json" -H "Accept: application/json" -H 
"X-Auth-Token: <token>"
  4) Notice that the list of images returned is still not in the correct order

  Expected:
  A list of images correctly sorted by the 'id' property value

  Actual:
  A list of images is returned, but not correctly ordered, either asc or desc

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1440170/+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