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

Bug 1438492

Summary: Incorrect Behaviour when setting the RNG parameters to string
Product: [oVirt] ovirt-engine Reporter: Shira Maximov <mshira>
Component: Frontend.WebAdminAssignee: Nobody <nobody>
Status: CLOSED CANTFIX QA Contact: Nisim Simsolo <nsimsolo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.1.1.2CC: bugs, gshereme, mavital, michal.skrivanek, mshira, rbarry, tjelinek
Target Milestone: ---Keywords: Reopened
Target Release: ---Flags: tjelinek: ovirt-4.3?
rule-engine: planning_ack+
tjelinek: devel_ack?
tjelinek: testing_ack?
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: 2018-11-21 00:14:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1455944    
Bug Blocks:    
Attachments:
Description Flags
video none

Description Shira Maximov 2017-04-03 14:09:57 UTC
Description of problem:
When Setting the RNG parameters (Period duration , Period duration) values to string and not int, there is an error saying the field should be a number, but still there is an option to click 'OK'.   

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

How reproducible:
Red Hat Virtualization Manager Version: 4.1.1.6-0.1.el7


Steps to Reproduce:
1. in Edit VM - > Random Generator - > set a string in: Period duration , Period duration 
2. click 'OK'
3.

Actual results:


Expected results:
It should be possible to save the settings of the VM

Additional info:

Comment 1 Tomas Jelinek 2017-04-04 08:50:02 UTC
not sure what you mean. The field can contain only integer values, not strings. If you put a string there, you will get a validation message that the field has to contain an integer. 

Is it behaving differently for you?

Comment 2 Shira Maximov 2017-04-04 10:50:51 UTC
I get the get a validation message, but i still can click 'OK' in order to save this configuration.

Comment 3 Tomas Jelinek 2017-04-04 14:05:29 UTC
sure, this is what should happen. If you have validation issues, you should not be able to submit the dialog and save the configuration.

Comment 4 Shira Maximov 2017-04-04 14:49:49 UTC
Created attachment 1268706 [details]
video

Comment 5 Shira Maximov 2017-04-04 14:51:29 UTC
This is why I open this bug. because it is possible to submit the dialog.
please see attachment.

Comment 6 Tomas Jelinek 2017-04-05 07:12:23 UTC
that makes it interesting :) Sorry, I misunderstood your description and it did not reproduce on my setup.

Anyway, fair point, reopening.

Comment 7 Tomas Jelinek 2017-05-26 13:52:09 UTC
it is blocked on infrastructure bug: 
https://bugzilla.redhat.com/show_bug.cgi?id=1455944

removing from z stream.

Comment 8 Michal Skrivanek 2017-08-22 08:27:05 UTC
still blocked on bug 1455944, is it targeted for 4.2?

Comment 9 Oved Ourfali 2017-08-22 08:42:34 UTC
Greg, can we achieve that?

Comment 10 Greg Sheremeta 2017-10-15 13:08:19 UTC
Yes, bug 1455944 can be fixed -- unfortunately, not until 4.3 now.

I'm not seeing the connection to bug 1455944, though, because in the example video, no integer is entered first. Is something else setting a valid int into the model before the field is touched?

Comment 11 Tomas Jelinek 2017-10-19 08:45:53 UTC
(In reply to Greg Sheremeta from comment #10)
> Yes, bug 1455944 can be fixed -- unfortunately, not until 4.3 now.

ok, so moving this out of 4.2

> 
> I'm not seeing the connection to bug 1455944, though, because in the example
> video, no integer is entered first. Is something else setting a valid int
> into the model before the field is touched?

the default value is "null" which is valid. The example with "5" in bug 1455944 was just to make it more explicit what is happening.

Comment 12 Ryan Barry 2018-11-21 00:14:48 UTC
Closed, since the bug this depends on was closed WONTFIX