Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1489399

Summary: subscription-manager-cockpit displays raw error message when letting password field empty
Product: Red Hat Enterprise Linux 7 Reporter: Jan Stavel <jstavel>
Component: subscription-managerAssignee: Jiri Hnidek <jhnidek>
Status: CLOSED ERRATA QA Contact: Jan Stavel <jstavel>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.5CC: jhnidek, jsefler, khowell, redakkan, salmy, skallesh
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 09:51:13 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
a screenshot of a raw error message
none
Better error message, when no password is provided.
none
Error: Missing username/password none

Description Jan Stavel 2017-09-07 11:30:33 UTC
Description of problem:

When I open 'Register system' dialog
   and fill 'Login' field
   and let 'Password' field empty
   and click 'Register'

Then a raw message 

    'Error: /usr/lib64/python2.7/getpass.py:83: GetPassWarning: Can not control echo on the terminal. passwd = fallback_getpass(prompt, stream) Warning: Password input may be echoed. Password: Registering to: subscription.rhsm.stage.redhat.com:443/subscription'

   appears.

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

   [root@jstavel-rhel7-latest-server ~]# rpm -qa | grep cockpit
   cockpit-bridge-138-9.el7.x86_64
   cockpit-system-138-9.el7.noarch
   cockpit-138-9.el7.x86_64
   cockpit-ws-138-9.el7.x86_64


Actual results:

Raw result with python related info.

Expected results:

Something better from customer's perspective.

Comment 2 Jan Stavel 2017-10-02 10:56:18 UTC
Created attachment 1333181 [details]
a screenshot of a raw error message

Comment 3 Jiri Hnidek 2017-11-22 15:12:29 UTC
I think that this bug is fixed by existing PR (not merged yet). I'm adding link to this PR.

Comment 4 Jiri Hnidek 2017-11-22 15:14:16 UTC
Created attachment 1357599 [details]
Better error message, when no password is provided.

Comment 6 Shwetha Kallesh 2018-01-31 07:49:03 UTC
Created attachment 1388766 [details]
Error: Missing username/password

Moving bug to verified .

Proper error message is now thrown to the user

[root@bkr-hv03-guest18 ~]# rpm -qa | grep cockpit
cockpit-160-2.el7.x86_64
cockpit-bridge-160-2.el7.x86_64
subscription-manager-cockpit-1.20.10-1.el7.noarch
cockpit-system-160-2.el7.noarch
cockpit-ws-160-2.el7.x86_64

Comment 9 errata-xmlrpc 2018-04-10 09:51:13 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/RHBA-2018:0681