Bug 328831 - RHN XML-RPC interface is specifying wrong encoding for errata
RHN XML-RPC interface is specifying wrong encoding for errata
Status: CLOSED DEFERRED
Product: Red Hat Satellite 5
Classification: Red Hat
Component: i18n (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Shannon Hughes
Red Hat Satellite QA List
:
Depends On:
Blocks: 462714
  Show dependency treegraph
 
Reported: 2007-10-11 21:43 EDT by Jay Soffian
Modified: 2015-05-29 16:11 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-05-29 16:11:21 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
Python program demonstrating incorrect encoding for RHSA-2007:0494 (350 bytes, text/plain)
2007-10-11 21:49 EDT, Jay Soffian
no flags Details

  None (edit)
Description Jay Soffian 2007-10-11 21:43:30 EDT
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-11 21:49:39 EDT
Created attachment 224941 [details]
Python program demonstrating incorrect encoding for RHSA-2007:0494

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