Bug 328831 - RHN XML-RPC interface is specifying wrong encoding for errata
Summary: RHN XML-RPC interface is specifying wrong encoding for errata
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: i18n
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Shannon Hughes
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 462714
TreeView+ depends on / blocked
 
Reported: 2007-10-12 01:43 UTC by Jay Soffian
Modified: 2015-05-29 20:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-29 20:11:21 UTC
Target Upstream Version:
Embargoed:


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

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


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