Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Validate boolean values
......................................................................


restapi: Validate boolean values

JAXB doesn't validate boolean values, anything that isn't the string
"true" is interpreted as false. This patch introduces a custom parser
for the boolean type that only accepts the strings "true" and "false",
any other thing will be rejected.

Change-Id: Ibb3558185a46869a73115b936183cb22007c99e9
Bug-Url: https://bugzilla.redhat.com/1063876
Signed-off-by: Juan Hernandez <[email protected]>
---
A 
backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/utils/BooleanParser.java
M 
backend/manager/modules/restapi/interface/definition/src/main/resources/api.xjb
2 files changed, 26 insertions(+), 0 deletions(-)

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



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibb3558185a46869a73115b936183cb22007c99e9
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Ravi Nori <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to