Change in ovirt-engine[master]: restapi: Discard blank "from" parameter

juan.hernandez at redhat.com juan.hernandez at redhat.com
Fri Jan 9 15:58:54 UTC 2015


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Discard blank "from" parameter
......................................................................


restapi: Discard blank "from" parameter

Currently when the RESTAPI receives a query with an empth "from"
parameter it generates an exception because it tries to parse the value
as a numeric value. Well behaved callers shouldn't generate this kind of
request, but anyhow the RESTAPI shouldn't fail in this case, it should
just ignore the parameter completely.

Change-Id: I1a909193d17503bb7eb7025b40a56243c6a044bf
Bug-Url: https://bugzilla.redhat.com/1179171
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/AbstractBackendCollectionResource.java
1 file changed, 14 insertions(+), 9 deletions(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved



-- 
To view, visit http://gerrit.ovirt.org/36608
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1a909193d17503bb7eb7025b40a56243c6a044bf
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list