Juan Hernandez has submitted this change and it was merged.
Change subject: restapi: Validate QoS type
......................................................................
restapi: Validate QoS type
Currently when a QoS is added to a data center we don't validate that
the mandatory type is specified. This eventually triggers a NPE when
validating the value. To avoid this this patch adds the validation and
modifies the type validator so that it won't fail if no type is
provided.
Change-Id: I90b62c4f4499dcc4abec5495a9907102e213df0e
Bug-Url:
https://bugzilla.redhat.com/1148773
Signed-off-by: Juan Hernandez <juan.hernandez(a)redhat.com>
---
M
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendQossResource.java
M
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/validation/QosValidator.java
2 files changed, 4 insertions(+), 2 deletions(-)
Approvals:
Juan Hernandez: Verified; Looks good to me, approved
Gilad Chaplik: Looks good to me, but someone else must approve
--
To view, visit
http://gerrit.ovirt.org/33726
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I90b62c4f4499dcc4abec5495a9907102e213df0e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchaplik(a)redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org