Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1392452

Summary: Importing RPM with non-UTF8 chars in description fails
Product: Red Hat Satellite Reporter: Pavel Moravec <pmoravec>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.4CC: bbuckingham, jcallaha, mhrivnak, pmoravec
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-21 18:58:15 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:

Description Pavel Moravec 2016-11-07 14:23:54 UTC
Description of problem:
Importing RPM with non-UTF8 chars in description fails with "pulp_rpm.plugins.importers.yum.upload:ERROR: (22882-39584) unexpected error occurred importing uploaded file: strings in documents must be valid UTF-8:" error.


Version-Release number of selected component (if applicable):
pulp-rpm-plugins-2.8.7.3-1.el7sat.noarch


How reproducible:
100%


Steps to Reproduce:
1. Have a RPM with non-UTF8 chars in %description. (to get thatm have whatever SRPM, replace %description by e.g. http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt and rpmbuild)
2. Have a custom product and a repo in it
3. Try to upload that RPM to it:

hammer -u admin -p redhat repository upload-content --organization-id=1 --id=14 --product-id=164 --path=nonUTF8.rpm 


Actual results:
Failed to upload file 'nonUTF8.rpm' to repository. Please check the file and try again.

/var/log/messages having backtrace like in https://pulp.plan.io/issues/1903


Expected results:
Upload passes


Additional info:
Simply backport https://pulp.plan.io/issues/1903 to Satellite's pulp. I have verified it works well :)

Comment 8 pulp-infra@redhat.com 2016-11-21 18:54:34 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.

Comment 9 pulp-infra@redhat.com 2016-11-21 18:54:37 UTC
The Pulp upstream bug priority is at Low. Updating the external tracker on this bug.

Comment 10 Brian Bouterse 2016-11-21 18:58:15 UTC
Closing as duplicate of 1333110. Both issues are associated with the same upstream Pulp bug.

*** This bug has been marked as a duplicate of bug 1333110 ***