RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1527396 - subscription-manager-cockpit : Throws Error: Missing username or password error even when you try to register with invalid activation key
Summary: subscription-manager-cockpit : Throws Error: Missing username or password err...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Jiri Hnidek
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
: 1540152 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-19 11:03 UTC by Shwetha Kallesh
Modified: 2020-09-29 19:22 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-29 19:22:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Missing username or password error when registering with invalid activationkey (107.12 KB, image/png)
2017-12-19 11:03 UTC, Shwetha Kallesh
no flags Details
Missing username or password error when registering with invalid organisation and valid activationkey (106.90 KB, image/png)
2017-12-19 11:09 UTC, Shwetha Kallesh
no flags Details
Error message for the case "enter a valid org and invalid activation key" (120.42 KB, image/png)
2020-04-15 12:51 UTC, Shwetha Kallesh
no flags Details
Error message for the case "Enter a valid activation Key and leave the org field blank" (119.88 KB, image/png)
2020-04-15 12:53 UTC, Shwetha Kallesh
no flags Details
Error message for the case "Enter a invalid organisation and click on register button" (119.11 KB, image/png)
2020-04-15 12:53 UTC, Shwetha Kallesh
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 1779 0 None closed 1527396: Subman cockpit plugin - fix registration using act. keys 2020-05-27 11:11:58 UTC
Red Hat Product Errata RHBA-2020:3866 0 None None None 2020-09-29 19:22:58 UTC

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


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