Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 328831

Summary: RHN XML-RPC interface is specifying wrong encoding for errata
Product: Red Hat Satellite 5 Reporter: Jay Soffian <jay-redhat>
Component: i18nAssignee: Shannon Hughes <shughes>
Status: CLOSED DEFERRED QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: cperry
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-29 20:11:21 UTC Type: ---
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: 462714    
Attachments:
Description Flags
Python program demonstrating incorrect encoding for RHSA-2007:0494 none

Description Jay Soffian 2007-10-12 01:43:30 UTC
Description of problem:
The current RHN XML-RPC interface is currently returning errata and specifying that their encoding is 
ISO-8859-1. The problem is that some errata are actually encoded using utf-8.

Version-Release number of selected component (if applicable):
Version: 5.0.3 Java; System Version: 5.0.3


How reproducible:
Consistently

Steps to Reproduce:
1. Download attached python program
2. Modify to include a valid RHN username/password
3. Run the program. Notice the following in the output

body: '<?xml version="1.0" encoding="ISO-8859-1"?>
[...]
by Dirk\r\nM\xc3\xbcller that

The hex sequence \xc3\xbc is the utf-8 encoding of 'ΓΌ' (that's 'u' with an umlaut diacritic). However, 
because the XML response specifies that the data is ISO-8859-1, it is decoded incorrectly by the client.
  
Actual results:
XML-RPC reply specifies incorrect (ISO-8859-1) encoding. 

Expected results:
XML-RPC reply specifies correct (utf-8) encoding.

Additional info:

Comment 1 Jay Soffian 2007-10-12 01:49:39 UTC
Created attachment 224941 [details]
Python program demonstrating incorrect encoding for RHSA-2007:0494