Bug 1737418

Summary: [Kubevirt-Foreman] Compute profile edit form has no validation for Storage size
Product: Red Hat Satellite Reporter: Vladimír Sedmík <vsedmik>
Component: Compute Resources - CNVAssignee: Shira Maximov <mshira>
Status: CLOSED ERRATA QA Contact: Vladimír Sedmík <vsedmik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: egolov, mshira, orabin, pkliczew, zhunting
Target Milestone: 6.7.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_kubevirt-0.1.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1755376 (view as bug list) Environment:
Last Closed: 2020-04-14 13:25:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1755376    

Description Vladimír Sedmík 2019-08-05 10:42:29 UTC
Description of problem:
The Compute profile edit form allows a user to enter invalid value, there is no validation performed.

Version-Release number of selected component (if applicable):
Satellite 6.6.0 snap 14:
satellite-6.6.0-5.beta.el7sat.noarch
tfm-rubygem-foreman_kubevirt-0.1.4-1.el7sat.noarch
tfm-rubygem-fog-kubevirt-1.3.1-1.el7sat.noarch

How reproducible:
always

Steps to Reproduce:
1. Go to Infrastructure > Compute resources > select kubevirt CR > Compute profiles
2. Click some profile or create a new one.
3. Click '+Add volume' and input requried size.

Actual results:
Any input string (text) is accepted with no error message.

Expected results:
Only numbers and valid units (MGTPE) should be accepted.

Additional info:
Similar to this BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1700769

Comment 3 Shira Maximov 2019-08-26 07:51:57 UTC
Created redmine issue https://projects.theforeman.org/issues/27703 from this bug

Comment 4 Bryan Kearney 2019-08-26 12:01:35 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27703 has been resolved.

Comment 7 Shira Maximov 2019-09-25 14:15:51 UTC
*** Bug 1755376 has been marked as a duplicate of this bug. ***

Comment 11 errata-xmlrpc 2020-04-14 13:25:13 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.

https://access.redhat.com/errata/RHSA-2020:1454