Red Hat Bugzilla – Bug 886802
REST API does not show custom properties containing the '=' character more than once
Last modified: 2016-02-10 14:07:35 EST
Created attachment 662781 [details]
Console output for failing case
Description of problem:
This somewhat similar to https://bugzilla.redhat.com/show_bug.cgi?id=728793, but only related to the REST API. When setting a custom property that contains more than one '=' character, the property is saved and displayed in the web interface, but cannot be seen when getting the VM properties via the REST API.
Version-Release number of selected component (if applicable): 3.0.2, also tested on 3.0.7 with the same result
How reproducible: Always
Steps to Reproduce:
1. Set a custom property for a VM with more than one '=' character, e.g.
2. Get the VM properties via the REST API, it will show the following
3. Set the property to a different value, not including more than one '=', it will work
Actual results: custom property not seen in the API output.
Expected results: Custom property displayed in the API response
Additional info: Attached two files. working.txt shows how the custom property is properly displayed and stored in the database when there is only a '=' char, failing.txt show how it is stored in the database but not displayed by the API when there is more than one.
Created attachment 662782 [details]
Console output for working case
Change id: I19bcbc278a51722636ddaa0a660b5289933bc8ba
created a new custom variable:
rhevm-config -s UserDefinedVMProperties='finjeck2=.*'
hook it to vm.
Rest api get on vm:
<custom_property name="finjeck2" value="hdfskjhfks=="/>
3.2 has been released