Bug 714842 - CLI register module produces trace back
Summary: CLI register module produces trace back
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.7
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Chris Duryee
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 771748
TreeView+ depends on / blocked
 
Reported: 2011-06-21 04:05 UTC by Kenichi Takemura
Modified: 2014-08-04 22:04 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No documentation needed.
Clone Of:
Environment:
Last Closed: 2013-01-08 03:59:18 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0033 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-01-08 08:38:27 UTC

Description Kenichi Takemura 2011-06-21 04:05:14 UTC
Description of problem:

$ LANG=ja_JP.utf8 sudo subscription-manager register --username=wrong_USERNAME --password=wrong_PASSWORD
Traceback (most recent call last):
  File "/usr/lib/python2.4/logging/handlers.py", line 71, in emit
    if self.shouldRollover(record):
  File "/usr/lib/python2.4/logging/handlers.py", line 149, in shouldRollover
    msg = "%s\n" % self.format(record)
  File "/usr/lib/python2.4/logging/__init__.py", line 617, in format
    return fmt.format(record)
  File "/usr/lib/python2.4/logging/__init__.py", line 408, in format
    s = self._fmt % record.__dict__
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-28: ordinal not in range(128)
ユーザー名かパスワードが無効です。ログインを作成するには、https://www.redhat.com/wapps/ugc/register.html に進んでください

$ LANG=ja_JP.utf8 sudo subscription-manager register --username=$USERNAME --password=$PASSWORD --type=wrong_type
Traceback (most recent call last):
  File "/usr/lib/python2.4/logging/handlers.py", line 71, in emit
    if self.shouldRollover(record):
  File "/usr/lib/python2.4/logging/handlers.py", line 149, in shouldRollover
    msg = "%s\n" % self.format(record)
  File "/usr/lib/python2.4/logging/__init__.py", line 617, in format
    return fmt.format(record)
  File "/usr/lib/python2.4/logging/__init__.py", line 408, in format
    s = self._fmt % record.__dict__
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-13: ordinal not in range(128)
その消費者タイプはありません: wrong_type

Version-Release number of selected component (if applicable):
subscription-manager-0.95.5.20-1.el5
subscription-manager-firstboot-0.95.5.20-1.el5
subscription-manager-gnome-0.95.5.20-1.el5


How reproducible:
100%

Steps to Reproduce:
1. Run register with invalid username and password combination
2. Run register with invalid type
3.
  
Actual results:
Expected errors shown but Traceback is produced.

Expected results:
No Traceback is produced.

Additional info:

When I hit the command in en_US

$ LANG=en_US.utf8 sudo subscription-manager register --username=wrong_USERNAME --password=wrong_PASSWORDInvalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html


$ LANG=en_US.utf8 sudo subscription-manager register --username=$USERNAME --password=$PASSWORD --type=wrong_type
No such consumer type: wrong_type

Comment 1 Bryan Kearney 2012-02-22 19:15:43 UTC
Current release has resolved this bug.

Comment 2 J.C. Molet 2012-06-19 19:35:56 UTC
Testing on version: subscription-manager-1.0.4-1.git.3.1768f90.el5


[root@jmolet-vm0 rhsm]# subscription-manager identity
This system is not yet registered. Try 'subscription-manager register --help' for more information.

#Case 1:

[root@jmolet-vm0 rhsm]# subscription-manager register --username=testuser1 --password=blahblah
Invalid Credentials

#Case 2:

[root@jmolet-vm0 rhsm]# subscription-manager register --user testuser1 --password password --org admin --type=wrongtypehere
No such consumer type: wrongtypehere


marking VERIFIED.

Comment 3 RHEL Program Management 2012-06-19 19:48:14 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 6 errata-xmlrpc 2013-01-08 03:59:18 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-2013-0033.html


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