Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1357134 - spacewalk-common-channels do not accept UTF-8 encoding
Summary: spacewalk-common-channels do not accept UTF-8 encoding
Status: NEW
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 2.5
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Red Hat Satellite QA List
Depends On:
TreeView+ depends on / blocked
Reported: 2016-07-15 21:01 UTC by Luzemario
Modified: 2019-02-25 13:43 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1357153 (view as bug list)
Last Closed:

Attachments (Terms of Use)

Description Luzemario 2016-07-15 21:01:36 UTC
Description of problem: spacewalk-common-channels throws an error if language is UTF-8 based

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

How reproducible:

Set OS language to any UTF-8 (i.e. pt_BR.UTF-8) then run spacewalk-common-channels to add channels

Steps to Reproduce:
1. Run spacewalk-common-channels with all channels '*' option but an invalid username or password
2. An error message will be generated about username or password incorrect
3. The error message can't be displayed

Actual results:
[root@swalk ~]# spacewalk-common-channels -u admin -p pass -k unlimited '*'
Traceback (most recent call last):
  File "/usr/bin/spacewalk-common-channels", line 221, in <module>
  File "/usr/bin/spacewalk-common-channels", line 73, in connect
    key = xmlrpc_login(client, options.user, password)
  File "/usr/lib/python2.6/site-packages/spacewalk/common/", line 76, in xmlrpc_login
    sys.stderr.write("Error: %s\n" % e.faultString)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 60: ordinal not in range(128)

Expected results:

[root@swalk ~]# spacewalk-common-channels -u admin -p pass -k unlimited '*'
Error: redstone.xmlrpc.XmlRpcFault: Either the password or username is incorrect.

Additional info:

Setting OS language to any ASCII (i.e. non-UTF8) codepage resolves the issue.

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