Bug 1372002

Summary: Entering negative value in "Add Subscriptions" changes value to all available subscriptions/entitlements
Product: Red Hat Quickstart Cloud Installer Reporter: Thom Carlin <tcarlin>
Component: WebUIAssignee: cchase
Status: CLOSED ERRATA QA Contact: Tasos Papaioannou <tpapaioa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.0CC: cchase, tpapaioa, tsanders
Target Milestone: ---Keywords: Triaged
Target Release: 1.1   
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-28 01:39:01 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:

Description Thom Carlin 2016-08-31 16:24:49 UTC
Description of problem:

In Subscriptions > Add Subscriptions, adding an invalid or negative quantity results in quantity defaulting to all available subscriptions

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

QCI-1.0-RHEL-7-20160830.t.0

How reproducible:

100%

Steps to Reproduce:
1. Install/configure QCI
2. Deploy RHV
3. At Subscriptions > Add Subscriptions, enter an invalid value (e.g. H) or negative value (e.g -3)
4. Examine value added

Actual results:

Maximum available subscriptions for that row

Expected results:

Error/warning
Default to zero new entitlements

Additional info:

Entering a fraction results in a rounded down (floor) quantity

Customers should not be able to detach prior subscriptions using QCI.  Customer Portal would be the correct place.

Comment 2 cchase 2016-09-26 20:00:33 UTC
https://github.com/fusor/fusor/pull/1238

Incorrect submissions (empty and in the right number range) will highlight red, and focusing out will change it to 0.

Comment 3 Tasos Papaioannou 2016-10-07 13:30:59 UTC
Verified on QCI-1.1-RHEL-7-20161006.t.0.

Comment 6 errata-xmlrpc 2017-02-28 01:39:01 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/RHEA-2017:0335