Bug 1527396

Summary: subscription-manager-cockpit : Throws Error: Missing username or password error even when you try to register with invalid activation key
Product: Red Hat Enterprise Linux 7 Reporter: Shwetha Kallesh <skallesh>
Component: subscription-managerAssignee: Jiri Hnidek <jhnidek>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.5CC: cdonnell, jhnidek, khowell, wpoteat
Target Milestone: rcKeywords: Triaged
Target Release: ---   
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: 2020-09-29 19:22:40 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:
Attachments:
Description Flags
Missing username or password error when registering with invalid activationkey
none
Missing username or password error when registering with invalid organisation and valid activationkey
none
Error message for the case "enter a valid org and invalid activation key"
none
Error message for the case "Enter a valid activation Key and leave the org field blank"
none
Error message for the case "Enter a invalid organisation and click on register button" none

Description Shwetha Kallesh 2017-12-19 11:03:38 UTC
Created attachment 1369891 [details]
Missing username or password error when registering with invalid activationkey

Description of problem:
subscription-manager-cockpit : Throws Error: Missing username or password error even when you try to register with invalid activation key

Version-Release number of selected component (if applicable):
[root@dhcp182-10 ~]# rpm -qa | grep cockpit
cockpit-dashboard-158-1.el7.x86_64
cockpit-system-158-1.el7.noarch
cockpit-ws-158-1.el7.x86_64
subscription-manager-cockpit-1.20.8-1.el7.noarch
cockpit-tests-158-1.el7.x86_64
cockpit-bridge-158-1.el7.x86_64
cockpit-158-1.el7.x86_64


How reproducible:


Steps to Reproduce:
1.launch cockpit ----> navigate to Subscriptions tab
2. click on register button

Case 1:
3. enter a valid org and invalid activation key

Case 2:
4. Enter a valid activation Key and leave the org field blank

Case 3:
5.Enter a invalid organisation and click on register button

Actual results:

Case 1: 
Missing username or password

Case 2:

Missing username or password

Case 3:
Missing username or password

Expected results:
Case 1: 
Error: None of the activation keys specified exist for this org

Case 2:
Error: 'Organization' required when using activation keys

Case 3:

Error: Organization foo does not exist


Additional info:

Comment 2 Shwetha Kallesh 2017-12-19 11:09:49 UTC
Created attachment 1369894 [details]
Missing username or password error when registering with invalid organisation and valid activationkey

Comment 3 Kevin Howell 2018-02-12 15:32:09 UTC
*** Bug 1540152 has been marked as a duplicate of this bug. ***

Comment 6 Shwetha Kallesh 2020-04-15 12:51:58 UTC
Created attachment 1679036 [details]
Error message for the case "enter a valid org and invalid activation key"

Verification:

[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 2.9.21-1
subscription management rules: 5.37
subscription-manager: 1.24.32

Case 1:
enter a valid org and invalid activation key

Comment 7 Shwetha Kallesh 2020-04-15 12:53:07 UTC
Created attachment 1679037 [details]
Error message for the case "Enter a valid activation Key and leave the org field blank"

Case 2:
Enter a valid activation Key and leave the org field blank

[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 2.9.21-1
subscription management rules: 5.37
subscription-manager: 1.24.32

Comment 8 Shwetha Kallesh 2020-04-15 12:53:56 UTC
Created attachment 1679038 [details]
Error message for the case "Enter a invalid organisation and click on register button"

Case 3:
Enter a invalid organisation and click on register button

[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 2.9.21-1
subscription management rules: 5.37
subscription-manager: 1.24.32

Comment 9 Shwetha Kallesh 2020-04-15 12:54:57 UTC
Moving the bug to verified based on comments 6,7 and 8

Comment 11 errata-xmlrpc 2020-09-29 19:22:40 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 (subscription-manager bug fix update), 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/RHBA-2020:3866