Bug 773539 - [ALL LANG] [RHSM CLI] orgs module with wrong username or password produces traceback : "UnicodeEncodeError: 'ascii' codec can't encode characters in position..".
Summary: [ALL LANG] [RHSM CLI] orgs module with wrong username or password produces tr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.8
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: William Poteat
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: 771748 807971
TreeView+ depends on / blocked
 
Reported: 2012-01-12 08:07 UTC by Lijun Li
Modified: 2013-01-08 03:48 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: The logging of unicode strings. Consequence: A traceback would be printed to the console. Fix: Properly handling logging messages as unicode. Result: No tracebacks are produced.
Clone Of:
Environment:
Last Closed: 2013-01-08 03:48:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
orgs module with wrong username or password produces traceback (43.03 KB, image/png)
2012-01-12 08:10 UTC, Lijun Li
no flags Details


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 Lijun Li 2012-01-12 08:07:50 UTC
Description of problem:
orgs module with wrong username or password produces traceback : "UnicodeEncodeError: 'ascii' codec can't encode characters in position..".

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


How reproducible:
100%

Steps to Reproduce:
1. Install rhel5.8 snapshot-3 OS build via
http://download.englab.nay.redhat.com/pub/rhel/rel-eng/RHEL5.8-Server-20120105.0/5/i386/os/

2. (Run the command when the system is NOT registered)

(Run with wrong option)

$ sudo subscription-manager orgs --username=wrong_USERNAME --password=wrong_PASSWORD
  
Actual results:
orgs module with wrong username or password produces traceback : "UnicodeEncodeError: 'ascii' codec can't encode characters in position..".

Expected results:
Should no traceback.


Additional info:

Comment 1 Lijun Li 2012-01-12 08:10:13 UTC
Created attachment 552333 [details]
orgs module with wrong username or password produces traceback

Comment 4 RHEL Program Management 2012-04-02 10:20:05 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 7 Sharath Dwaral 2012-06-19 21:08:04 UTC
Description of problem:
orgs module with wrong username or password produces traceback : "UnicodeEncodeError: 'ascii' codec can't encode characters in position..".

Version-Release number of selected component (if applicable):
RHEL 5.9
# rpm -qa | grep subscription-manager
subscription-manager-migration-1.0.4-1.git.0.0fe81f8.el5
subscription-manager-1.0.4-1.git.0.0fe81f8.el5
subscription-manager-migration-data-1.11.1.1-1.git.2.c7fbafe.el5
subscription-manager-gui-1.0.4-1.git.0.0fe81f8.el5
subscription-manager-firstboot-1.0.4-1.git.0.0fe81f8.el5

How reproducible:
100%

Steps to Reproduce:

# sudo subscription-manager orgs --username=wrong_USERNAME --password=wrong_PASSWORD
  Invalid Credentials

Actual Result:
As shown above

Expected Results:
No Trace back should be produces and Invalid Credentials message should be displayed.


Moving bug to verified state

Comment 9 errata-xmlrpc 2013-01-08 03:48:29 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.