Red Hat Bugzilla – Bug 999812
RestAPI URI template style query for 'users' and 'disks' resources do not work.
Last modified: 2016-02-10 14:12:28 EST
Description of problem:
I have more than 100 users and more than 100 vms. I am able to retrieve all vms by pagination:
But when I used same query style for 'users' and 'disks' resources. It does not return any value at all:
Steps to Reproduce:
1. Just try to open this url: http://rhevm-fqdn/api/disks?search=sortby%20name%20desc%20page%1
2. output will blank
like 'vms' resources, users and disks should also work properly
With users there is a real problem, fixed by this patch:
But with disks the problem is in the query that you used - when using 'alias' instead of 'name', it works (we don't use 'name' field for disk).
Both queries works ok in is21.
Result is sorted disks/users.
This bug is currently attached to errata RHEA-2013:15231. If this change is not to be documented in the text for this errata please either remove it from the errata, set the requires_doc_text flag to minus (-), or leave a "Doc Text" value of "--no tech note required" if you do not have permission to alter the flag.
Otherwise to aid in the development of relevant and accurate release documentation, please fill out the "Doc Text" field above with these four (4) pieces of information:
* Cause: What actions or circumstances cause this bug to present.
* Consequence: What happens when the bug presents.
* Fix: What was done to fix the bug.
* Result: What now happens when the actions or circumstances above occur. (NB: this is not the same as 'the bug doesn't present anymore')
Once filled out, please set the "Doc Type" field to the appropriate value for the type of change made and submit your edits to the bug.
For further details on the Cause, Consequence, Fix, Result format please refer to:
Thanks in advance.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.