Change in ovirt-engine-sdk[sdk_3.5]: sdk: Apply filter by name/alias after get
juan.hernandez at redhat.com
juan.hernandez at redhat.com
Tue Nov 11 11:09:12 UTC 2014
Juan Hernandez has submitted this change and it was merged.
Change subject: sdk: Apply filter by name/alias after get
......................................................................
sdk: Apply filter by name/alias after get
Currently, for searchable collections, the "get" method is implemented
using the "search" query parameter, and returning to the caller all the
results returned by the server. But when this is combined with the
"Filter: true" header the server ignores the "search" query parameter,
and instead it returns all the objects that the user has permissions
for. This means that in some situations the user may be requesting an
object and getting back a different one. To avoid this issue this patch
adds an additional filtering step, so the collection returned by the
server is filtered, and only the objects matching the name given by the
user are taken into consideration.
Change-Id: I9baf549c68a93f329b76d41a2ce52b7a7e7b6c79
Bug-Url: https://bugzilla.redhat.com/1155678
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
(cherry picked from commit 2006d3fb057a9c6c69a5e2bf227fe85cb949a409)
---
M src/ovirtsdk/infrastructure/brokers.py
1 file changed, 13 insertions(+), 13 deletions(-)
Approvals:
Juan Hernandez: Verified; Looks good to me, approved
--
To view, visit http://gerrit.ovirt.org/35027
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9baf549c68a93f329b76d41a2ce52b7a7e7b6c79
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk
Gerrit-Branch: sdk_3.5
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
More information about the Engine-commits
mailing list