Bug #27703
closed[Kubevirt-Foreman] Compute profile edit form has no validation for Storage size
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1737418
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
Updated by Shira Maximov almost 6 years ago
- Status changed from New to Closed
Applied in changeset foreman_kubevirt|824431da7cfb1b9829eaf7c80dc51b7997a77dc9.
Updated by Shira Maximov almost 6 years ago
- Pull request https://github.com/theforeman/foreman_kubevirt/pull/118 added
Updated by Shira Maximov almost 6 years ago
- Fixed in Releases foreman_kubevirt_v0.1.5 added