Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1595296 - Subscription update value of 0 passes UI validation, but fails in task.
Summary: Subscription update value of 0 passes UI validation, but fails in task.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Subscription Management
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.4.0
Assignee: Tomas Strachota
QA Contact: jcallaha
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-26 14:20 UTC by jcallaha
Modified: 2019-11-05 23:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:05:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
bad validation (81.41 KB, image/png)
2018-06-26 14:20 UTC, jcallaha
no flags Details
verification screenshot (3.45 KB, image/png)
2018-07-18 19:40 UTC, jcallaha
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 24197 0 None None None 2018-07-09 10:54:40 UTC

Description jcallaha 2018-06-26 14:20:00 UTC
Created attachment 1454678 [details]
bad validation

Description of problem:
Entering a value of 0, in the entitlements field, passes the UI validation. However, the task itself will fail with "Quantity value must be greater than 0".

See attached screenshot

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

How reproducible:
Always

Steps to Reproduce:
1. Upload a manifest with subscriptions.
2. Navigate to the Subscriptions page
3. Edit an entitlements field, and enter a value of 0

Actual results:
There are no validation warnings, and you can submit changes.

Expected results:
Validation checks catch the bad value and does not let you submit changes.

Comment 2 Tomas Strachota 2018-07-09 10:54:38 UTC
Created redmine issue https://projects.theforeman.org/issues/24197 from this bug

Comment 3 Satellite Program 2018-07-09 12:06:58 UTC
Upstream bug assigned to tstrachota

Comment 4 Satellite Program 2018-07-09 12:07:01 UTC
Upstream bug assigned to tstrachota

Comment 5 Satellite Program 2018-07-09 14:06:41 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/24197 has been resolved.

Comment 6 jcallaha 2018-07-18 19:40:00 UTC
Verified in Satellite 6.4 Snap 12. 

The form now correctly catches the 0 value during validation. Additionally, the form won't let you try to submit changes. 

See attached screenshot for verification.

Comment 7 jcallaha 2018-07-18 19:40:17 UTC
Created attachment 1459795 [details]
verification screenshot

Comment 8 Bryan Kearney 2018-10-16 19:05:59 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-2018:2927


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