Bug 401501

Summary: Satellite Exporter Cache Files Being Written With Wrong Encoding
Product: [Retired] Red Hat Network Reporter: Devan Goodwin <dgoodwin>
Component: RHN/BackendAssignee: Bryan Kearney <bkearney>
Status: CLOSED NOTABUG QA Contact: Amy Owens <aowens>
Severity: medium Docs Contact:
Priority: medium    
Version: rhn500CC: bperkins, cperry, jbrownin, rhn-bugs, whayutin, xdmoon
Target Milestone: ---Keywords: Reopened, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: US=17470
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-23 21:52:43 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: 345571, 382381, 428808, 428922, 463555    

Description Devan Goodwin 2007-11-27 17:40:16 UTC
Satellite bug #382381 uncovered a problem where package summaries
(Virtualization-ru-RU for example) were appearing in a mangled state. Problem
was not present in hosted's display of these packages, and the problem was
traced to the satellite exporter's cache files being written to disk without the
proper encoding. More details on specifics can be found in the original ticket.

Steps to Reproduce:

1. View the cached data for Virtualization-ru-RU package.
  
Actual results:

Ð Ñ<83>ководÑ<81>Ñ<82>во по виÑ<80>Ñ<82>Ñ<83>ализаÑ<86>ии

Expected results:

Руководство по виртуализации

Comment 1 James Bowes 2008-06-26 15:01:26 UTC
To test:
 * Make sure that on the scripts box, /var/cache/rhn/xml-* has been removed
 * register a statellite to the target env
 * run satellite sync for rhel 5 channels and virtualization channels
 * on your satellite, ensure that all of the virtualization-ru-ru packages show
cyrilic characters in their descriptions.

Comment 2 Amy Owens 2008-07-02 19:40:26 UTC
now in dev I see:   Руководство по виртуализации

Comment 3 Amy Owens 2008-07-16 19:59:33 UTC
all set in dev

Comment 5 Amy Owens 2008-09-08 19:21:47 UTC
not testing in qa-- do not want to blow away the cache again for sat folks-- tested in dev all set

Comment 6 Amy Owens 2008-09-18 19:49:36 UTC
so we need to back this out of RHN 507 and sdd to 508 /sprint 12

Comment 7 Jeff Browning 2008-09-18 20:07:35 UTC
Repro steps:

1) Installed Sat 520 i386 on RHEL4
2) Using the dump, sat-synced the i386 channels for RHEL 4 base and tools, and RHEL 5 base, tools, and virt.
3) satellite-sync from Web QA to check and update these channels since the dump is not 100% up to date.
4) Got the following error:

Exception type satellite_tools.xmlSource.FatalParseException

Exception Handler Information
Traceback (most recent call last):
  File "/usr/share/rhn/satellite_tools/xmlSource.py", line 123, in process
    self.__parser.parse(self.__stream)
  File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.3/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line 220, in feed
    self._err_handler.fatalError(exc)
  File "/usr/share/rhn/satellite_tools/xmlSource.py", line 233, in fatalError
    raise FatalParseException(e._msg, e, e._locator)
FatalParseException: :489:1015: not well-formed (invalid token)

5) Tried the channels one at a time. RHEL 4 tools worked, but RHEL 4 and 5 base channels still gave this error.

Comment 8 Brandon Perkins 2008-09-18 22:12:10 UTC
*** Bug 462693 has been marked as a duplicate of this bug. ***

Comment 9 Amy Owens 2008-09-25 12:25:01 UTC
added to sprint 13

Comment 10 Amy Owens 2008-09-30 14:11:09 UTC
moving out of 508-- into sprint 14

Comment 11 Amy Owens 2008-10-30 14:57:36 UTC
moving back out to backlog

Comment 16 Amy Owens 2009-01-30 16:23:41 UTC
This can NOT be fixed-
from hosted Topics Meeting on 1/19/09
"BZ 401501 - Hosted will close, no obvious solution, broken encoding for Sat generally breaks Hosted also"


https://engineering.redhat.com/trac/rhn-hosted/wiki/BRB