Bug 696262

Summary: pool with "unlimited" quantity shows as -1 in contract selection dialog
Product: Red Hat Enterprise Linux 6 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Bryan Kearney <bkearney>
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2   
Target Milestone: rc   
Target Release: 6.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 17:13:39 UTC Type: ---
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: 682238    
Attachments:
Description Flags
-1 quantity avail should read as "unlimited"
none
fix for unlimited in Contract Selection dialog none

Description John Sefler 2011-04-13 17:55:05 UTC
Created attachment 491841 [details]
-1 quantity avail should read as "unlimited"

Description of problem:
When subscribing to a pool through the gui for which one of the contracts has an unlimited quantity, it shows up as -1 in the contract selection dialog

See attached screenshot

Version-Release number of selected component (if applicable):
[root@jsefler-onprem-server tmp]# rpm -q subscription-manager-gnome
subscription-manager-gnome-0.95.8-1.el6.x86_64

This bug is found against rhel61, but is being opened against rhel57


How reproducible:


Steps to Reproduce:
1. register as the qa user against the production candlepin
2. use the gui to subscribe to the Red Hat Employee Subscription
3. in the contract selection dialog you will see the attached screenshot

Additional info:
# subscription-manager list --avail
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+


ProductName:       	Red Hat Employee Subscription
ProductId:         	SYS0395                  
PoolId:            	8a85f9812ede00af012edf01c88c5ce0
Quantity:          	18                       
Expires:           	2011-10-04               


ProductName:       	Red Hat Employee Subscription
ProductId:         	SYS0395                  
PoolId:            	8a85f9812ede00af012edf01c89f5cf9
Quantity:          	9994                     
Expires:           	2011-10-07               


ProductName:       	Red Hat Employee Subscription
ProductId:         	SYS0395                  
PoolId:            	8a85f9812ede00af012edf01c8a65d04
Quantity:          	unlimited                
Expires:           	2011-10-07              



Actual results:
-1

Expected results:
Unlimited

Comment 1 Chris Duryee 2011-04-13 19:30:48 UTC
Fixed on master branch in 129ad420940e72703a50b4f0c5674816a5c28dce, version
0.96.2

Comment 2 John Sefler 2011-07-12 21:06:34 UTC
Created attachment 512516 [details]
fix for unlimited in Contract Selection dialog

Verifying Version...
[root@jsefler-onprem-62server ~]# rpm -q subscription-manager-gnome
subscription-manager-gnome-0.96.3-1.git.33.8f93d7f.el6.x86_64

Comment 4 errata-xmlrpc 2011-12-06 17:13:39 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.

http://rhn.redhat.com/errata/RHBA-2011-1695.html