Bug 891880
Summary: | encode problem in rhnTB.py in spacewalk-backend | ||
---|---|---|---|
Product: | [Community] Spacewalk | Reporter: | Patrick Emer <pemer> |
Component: | Server | Assignee: | Michael Mráka <mmraka> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 1.8 | CC: | ciro.iriarte, cperry |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | spacewalk-backend-2.1.29-1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-03-04 13:07:18 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1069560 |
Description
Patrick Emer
2013-01-04 11:08:44 UTC
I see the same error with 1.10, the fix doesn't work though. After patching: --- [Sun Aug 11 19:00:18 2013] [error] [client 10.1.30.27] mod_wsgi (pid=1732): Exception occurred processing WSGI script '/usr/share/rhn/wsgi/xmlrpc.py'. [Sun Aug 11 19:00:18 2013] [error] [client 10.1.30.27] Traceback (most recent call last): [Sun Aug 11 19:00:18 2013] [error] [client 10.1.30.27] File "/usr/share/rhn/wsgi/xmlrpc.py", line 22, in application [Sun Aug 11 19:00:18 2013] [error] [client 10.1.30.27] return wsgiHandler.handle(environ, start_response, "xmlrpc", "server.xmlrpc") [Sun Aug 11 19:00:18 2013] [error] [client 10.1.30.27] File "/usr/share/rhn/wsgi/wsgiHandler.py", line 45, in handle [Sun Aug 11 19:00:18 2013] [error] [client 10.1.30.27] ret = appServ(req) [Sun Aug 11 19:00:18 2013] [error] [client 10.1.30.27] File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheHandler.py", line 196, in handler [Sun Aug 11 19:00:18 2013] [error] [client 10.1.30.27] ret = self._req_processor.process() [Sun Aug 11 19:00:18 2013] [error] [client 10.1.30.27] File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheRequest.py", line 486, in process [Sun Aug 11 19:00:18 2013] [error] [client 10.1.30.27] return self.call_function(method, params) [Sun Aug 11 19:00:18 2013] [error] [client 10.1.30.27] File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheRequest.py", line 175, in call_function [Sun Aug 11 19:00:18 2013] [error] [client 10.1.30.27] Traceback(method, self.req, severity="unhandled") [Sun Aug 11 19:00:18 2013] [error] [client 10.1.30.27] File "/usr/lib/python2.6/site-packages/spacewalk/common/rhnTB.py", line 151, in Traceback [Sun Aug 11 19:00:18 2013] [error] [client 10.1.30.27] ostream.write("%s\\n" % unicode(exc.getvalue(),errors='replace')) [Sun Aug 11 19:00:18 2013] [error] [client 10.1.30.27] File "/usr/lib64/python2.6/StringIO.py", line 270, in getvalue [Sun Aug 11 19:00:18 2013] [error] [client 10.1.30.27] self.buf += ''.join(self.buflist) [Sun Aug 11 19:00:18 2013] [error] [client 10.1.30.27] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 48: ordinal not in range(128) --- Sorry, this is 2.0 on CentOS6.4!! Packages: spacewalk-backend-2.0.3-1.el6.noarch python-2.6.6-37.el6_4.x86_64 Fixed in spacewalk master by commit c75009845c65d9a956238b46f52931c6fd2ae4c4 891880 - reuse stringutils functions commit e8628e3b3decc8502f4914d9f60c1d5e1dee3bd6 891880 - make sure we put strings to fd.write() Switching MODIFIED Spacewalk bugs to ON_QA before 2.1 release. Spacewalk 2.1 has been released. https://fedorahosted.org/spacewalk/wiki/ReleaseNotes21 Spacewalk 2.1 has been released. https://fedorahosted.org/spacewalk/wiki/ReleaseNotes21 |