Bug 1966527 - Entering a value in disk size field inserts GB with every keyboard input
Summary: Entering a value in disk size field inserts GB with every keyboard input
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Compute Resources - VMWare
Version: 6.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.10.0
Assignee: satellite6-bugs
QA Contact: Lukáš Hellebrandt
URL:
Whiteboard:
: 2003150 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-01 10:42 UTC by Krutika Kinge
Modified: 2021-11-16 14:11 UTC (History)
6 users (show)

Fixed In Version: foreman-2.5.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2007359 (view as bug list)
Environment:
Last Closed: 2021-11-16 14:11:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 32264 0 Normal Closed vmware - keyboard input in disk size field inserts superfluous GB modifier 2021-06-10 14:41:34 UTC
Red Hat Knowledge Base (Solution) 6119381 0 None None None 2021-06-15 12:20:10 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:11:30 UTC

Description Krutika Kinge 2021-06-01 10:42:20 UTC
Description of problem:
When trying to enter a number in the disk size field, while creating a new host or creating/modifying compute profiles it inserts "GB" after every keyboard input.

For Example, entering 100GB ends up with 1GB0GB0GB GB

Version-Release number of selected component (if applicable):
Satellite 6.9

How reproducible:
always

Steps to Reproduce:
1. Try to create a host on VMware or edit existing host or compute profile
2. Go to Virtual Machine tab, Section storage
3. Try to enter a value in disk size field

Actual results:
With every keyboard input, GB is inserted.

Expected results:
Should able to input a number without GB after every keyboard input.

Additional info:

Comment 1 Tomer Brisker 2021-06-10 14:41:32 UTC
Connecting redmine issue https://projects.theforeman.org/issues/32264 from this bug

Comment 3 Lukáš Hellebrandt 2021-07-14 10:32:16 UTC
Verified with Sat 6.10.0 snap 7.0.

Satellite now enforces input in form "<integer> GB" by appending "GB" at the end of a string after each keystroke, if it's not there already. This is true for both "Create host" form and "Compute profile" form. The host is then indeed created with the correct hard disk size.

Comment 5 Ashish Humbe 2021-09-23 11:19:25 UTC
*** Bug 2003150 has been marked as a duplicate of this bug. ***

Comment 8 errata-xmlrpc 2021-11-16 14:11:21 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 (Moderate: Satellite 6.10 Release), 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-2021:4702


Note You need to log in before you can comment on or make changes to this bug.