Bug 619699 - Spacewalk return error when receive unicode string in xmlrpc communication
Summary: Spacewalk return error when receive unicode string in xmlrpc communication
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server   
(Show other bugs)
Version: 1.1
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Keywords:
Depends On:
Blocks: space11 619702
TreeView+ depends on / blocked
 
Reported: 2010-07-30 08:18 UTC by Miroslav Suchý
Modified: 2010-08-19 08:24 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 619702 (view as bug list)
Environment:
Last Closed: 2010-08-19 08:24:31 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Miroslav Suchý 2010-07-30 08:18:54 UTC
Description of problem:
During work on https://bugzilla.redhat.com/show_bug.cgi?id=579830
I find that if we send unicode string in xmlrpc, we will get from server rhnFault

While running 'registration.add_hw_profile': caught
exceptions.UnicodeEncodeError : 'ascii' codec can't encode character u'\xae' in position 44: ordinal not in range(128) 

This is becouse we do in backend/server/rhnSQL/driver_cx_Oracle.py
     def _execute_wrapper(self, function, *p, **kw):
        params =  ','.join(["%s: %s" % (str(key), str(value)) for key, value \

and str on e.g. '\xae' will fail.

Comment 1 Miroslav Suchý 2010-08-03 13:46:11 UTC
commited as 7c5552b1f44df01a3a5e0f3b15c29b5a586d0594

Comment 2 Milan Zázrivec 2010-08-19 08:24:31 UTC
Spacewalk 1.1 has been released.


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