Bug 1230842

Summary: Legal values "0" and "1" for boolean parameters no longer accepted in RHEV 3.5
Product: Red Hat Enterprise Virtualization Manager Reporter: Julio Entrena Perez <jentrena>
Component: ovirt-engineAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED ERRATA QA Contact: Gonza <grafuls>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.5.0CC: bazulay, gklein, lsurette, pstehlik, rbalakri, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ovirt-3.6.0-rcKeywords: Regression
Target Release: 3.6.0   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-09 21:07:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Julio Entrena Perez 2015-06-11 15:31:07 UTC
Description of problem:
API calls using Python SDK fail if legal values "0" and "1" are used for boolean parameters.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Issue a call that requires boolean parameter(s).
2. Use "0" or "1" for the boolean parameter(s). For example:
   host.nics.setupnetworks(params.Action(force = 0, check_connectivity = 1, host_nics = params.HostNics(host_nic = mynics)))

Actual results:
status: 400
reason: Bad Request
detail: Value "1" isn't a valid boolean, it should be "true" or "false"

Expected results:
API call succeeds.

Additional info:
- This used to work in all RHEV 3.x versions up to and including 3.4.
- This seems to be a consequence of the change in upstream bug 1063876 .
- Since the change was applied to JAXB (Java Architecture for XML Binding), according to the XML specification, values "0" and "1" are not canonical but still legal values for boolean datatypes: http://www.w3.org/TR/xmlschema-2/#boolean

Comment 8 Max Kovgan 2015-06-28 14:12:31 UTC
ovirt-3.6.0-3 release

Comment 9 Gonza 2015-09-14 14:32:01 UTC
Verified with:

No error msg for:
host.nics.setupnetworks(params.Action(force=0, check_connectivity=1,

Comment 12 errata-xmlrpc 2016-03-09 21:07:50 UTC
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.