Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1390242

Summary: an event is not raised as required in case of choosing an empty/null entry in the new list boxes
Product: [oVirt] ovirt-engine Reporter: Sharon Gratch <sgratch>
Component: Frontend.WebAdminAssignee: Alexander Wels <awels>
Status: CLOSED CURRENTRELEASE QA Contact: Lucie Leistnerova <lleistne>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: bugs, gklein, lleistne, oourfali, sgratch
Target Milestone: ovirt-4.1.0-alphaFlags: rule-engine: ovirt-4.1+
rule-engine: planning_ack+
oourfali: devel_ack+
pstehlik: testing_ack+
Target Release: 4.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-15 15:04:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: UX RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sharon Gratch 2016-10-31 14:44:24 UTC
Description of problem:
There are few list boxes in webadmin and userportal in which one of the valid values to choose from the pull down list is an empty/null value and choosing this empty/null value should raise an event/callback. 

For example:
For the webadmin/userportal-> new vm-> System tab-> Advanced Parameters-> Custom Compatibility Version field.

When you choose a value in this field, a callback is called for resetting all properties of this vm back to the template default values.
The problem is that when choosing the null/empty value, the callback is not called (it was called with the old list boxes).


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

How reproducible:
100%

Steps to Reproduce:
1.open webadmin or userportal
2. open the "new vm" dialog and go to System tab-> Advanced Parameters and change the "Custom Compatibility Version" field value chosen to a different value (e.g. 4.0). 
You will see that the whole dialog is refreshed/reset as expected.
3. then change the "Custom Compatibility Version" field value to the null/empty value and see that the dialog is not refreshed/reset.

Actual results:
each value chosen in the listb oxes should raise an event if such is declared.

Expected results:
in case of choosing an empty entry, no event is raised even if one is declared for this list box.

Additional info:

Comment 1 Oved Ourfali 2016-11-01 12:27:19 UTC
We've moved to the new list boxes only in 4.1. Are you sure you're using 4.0.5?

Comment 2 Sharon Gratch 2016-11-01 14:29:26 UTC
(In reply to Oved Ourfali from comment #1)
> We've moved to the new list boxes only in 4.1. Are you sure you're using
> 4.0.5?
you are right, it was tested on 4.1 (master). My mistake, sorry.

Comment 3 Sandro Bonazzola 2016-12-12 14:02:09 UTC
The fix for this issue should be included in oVirt 4.1.0 beta 1 released on December 1st. If not included please move back to modified.

Comment 4 Lucie Leistnerova 2017-02-02 09:09:06 UTC
Custom Compatibility Version in VM, Pool and Template form reloads the form when changed back to empty value (both admin and user portal).
I did not find any other select of this type.

verified in ovirt-engine-4.1.0.3-0.1.el7.noarch