Bug 1305744
Summary: | Package data importes with incorrect character encoding | |||
---|---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Kamudini Gazdikova <kshirsal> | |
Component: | API | Assignee: | Gennadii Altukhov <galtukho> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Pavel Studeník <pstudeni> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 570 | CC: | ahumbe, dyordano, galtukho, ogajduse, pstudeni, sean, tlestach | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | spacewalk-utils-2.5.1-20-sat | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1437011 (view as bug list) | Environment: | ||
Last Closed: | 2017-06-21 12:15:54 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: | 1385726 | |||
Bug Blocks: | 1358815 |
Description
Kamudini Gazdikova
2016-02-09 06:03:18 UTC
This happens only if the content is synchronized via satelltie-sync from RHN. Steps I did: 1) Created channel, imported packages with corrupted description from any channel synced from RHN into it. Exported it via rhn-satellite-exporter (dump). Reimport it via satellite-sync and description is still corrupted. 2) Another way... Download packages from RHN, tested if description is OK (rpm -qip) and import it into server via rhnpush. Checked again, desc OK. Then I tried the same process as in the 1) - export and import using rhn-satellite-exporter and satsync. After that description is OK. checksum I've investigated that the description is corrupted already in the moment when satsync is importing package metadata. According to this and step 2) I reckon that satellite-sync receive corrupted data already on its input. I assume that this is not Satellite bug. I forgot to add info about checksums. Checksum is the same in both cases, corrupted and non-corrupted description. This bug is only for the problem with UTF-8 encoding in spacewalk-api tool. For wrong RPM data encoding imported by satellite-sync I created BZ 1437011. bug is fixed in upstream. spacewalk.git: e18d4f3c8bf744b46eb84a13634df869721ef1ed Reproducer:
*) find package checkpolicy
- show package on webui and get id of this package (in url)
- show by command by id package from webui
>> spacewalk-api --user=admin --password=secure --server=localhost packages.getDetails %session% <id>
...
'path' => 'redhat/NULL/fe3/checkpolicy/2.0.22-1.el6/x86_64/fe3f25f8afee914c1cf7b191799238a082d4a0cc2ff2d095e528d315efdafc3d/checkpolicy-2.0.22-1.el6.x86_64.rpm',
'description' => 'Security-enhanced Linux is a feature of the Linux® kernel and a number
of utilities with enhanced security functionality designed to add
...
Verified with spacewalk-utils-2.5.1-23.el6sat.noarch
|