Bug 1333110
| Summary: | Uploading rpm fails with "InvalidStringData: strings in documents must be valid UTF-8" | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | anerurka | ||||||||
| Component: | Pulp | Assignee: | satellite6-bugs <satellite6-bugs> | ||||||||
| Status: | CLOSED ERRATA | QA Contact: | jcallaha | ||||||||
| Severity: | urgent | Docs Contact: | |||||||||
| Priority: | urgent | ||||||||||
| Version: | 6.1.8 | CC: | adprice, andrew.schofield, bbuckingham, bmbouter, cduryee, daviddavis, dkliban, egolov, emarquez, ggainey, ipanova, jcallaha, kabbott, ktordeur, mhrivnak, mmccune, oshtaier, pcreech, pmoravec, rchan, satellite6-bugs, ttereshc, xdmoon | ||||||||
| Target Milestone: | Unspecified | Keywords: | FieldEngineering, PrioBumpField, Triaged | ||||||||
| Target Release: | Unused | ||||||||||
| Hardware: | x86_64 | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | pulp-rpm-2.8.7.16-1 | Doc Type: | Bug Fix | ||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | |||||||||||
| : | 1480345 (view as bug list) | Environment: | |||||||||
| Last Closed: | 2017-09-25 18:59:44 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: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
anerurka
2016-05-04 16:35:44 UTC
I don't think this is a regression. I think this has been the behavior for several pulp releases. I'm linking an upstream bug where we're tracking the issue. Moving 6.2 bugs out to sat-backlog. The Pulp upstream bug status is at NEW. Updating the external tracker on this bug. The Pulp upstream bug priority is at Low. Updating the external tracker on this bug. *** Bug 1392452 has been marked as a duplicate of this bug. *** The Pulp upstream bug status is at POST. Updating the external tracker on this bug. The Pulp upstream bug status is at NEW. Updating the external tracker on this bug. The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug. The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug. The Pulp upstream bug status is at POST. Updating the external tracker on this bug. The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug. All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST. The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug. The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug. All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST. The Pulp upstream bug status is at ON_QA. Updating the external tracker on this bug. The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug. Created attachment 1295394 [details]
pulp-rpm-common hotfix rpm
Verified in Satellite 6.3 Snap 10
Uploading rpms now works with both yum and file type repositories. See attached images for uploaded files.
--- rpm repo ---
2017-08-09 15:30:32 a4d731f9 [app] [I] Started POST "/katello/api/v2/repositories/19/upload_content" for 10.13.129.211 at 2017-08-09 15:30:32 -0400
2017-08-09 15:30:32 a4d731f9 [app] [I] Processing by Katello::Api::V2::RepositoriesController#upload_content as HTML
2017-08-09 15:30:32 a4d731f9 [app] [I] Parameters: {"content"=>[#<ActionDispatch::Http::UploadedFile:0x00000011c756f8 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-11q9006.rpm>, @original_filename="facter-2.4.6-3.el7sat.x86_64.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"facter-2.4.6-3.el7sat.x86_64.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x00000011c756d0 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-15gxn47.rpm>, @original_filename="gofer-2.7.6-1.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"gofer-2.7.6-1.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x00000011c756a8 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-h3n0t5.rpm>, @original_filename="hiera-1.3.1-2.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"hiera-1.3.1-2.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x00000011c75680 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-1pwferp.rpm>, @original_filename="katello-agent-2.5.0-5.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"katello-agent-2.5.0-5.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x00000011c75658 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-1ov8u5f.rpm>, @original_filename="katello-agent-2.9.0-2.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"katello-agent-2.9.0-2.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x00000011c75630 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-gf7yds.rpm>, @original_filename="libtasn1-3.8-3.el7.x86_64.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"libtasn1-3.8-3.el7.x86_64.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x00000011c75608 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-bnjatj.rpm>, @original_filename="pulp-puppet-tools-2.8.7.1-1.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"pulp-puppet-tools-2.8.7.1-1.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x00000011c755e0 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-1krvsgt.rpm>, @original_filename="pulp-rpm-handlers-2.8.7.5-1.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"pulp-rpm-handlers-2.8.7.5-1.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x00000011c755b8 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-11ord10.rpm>, @original_filename="puppet-3.8.6-2.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"puppet-3.8.6-2.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x00000011c75590 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-6at6oa.rpm>, @original_filename="python-gofer-2.7.6-1.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"python-gofer-2.7.6-1.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x00000011c75568 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-1pvohg4.rpm>, @original_filename="python-gofer-proton-2.7.6-1.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"python-gofer-proton-2.7.6-1.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">], "authenticity_token"=>"dfRAgSrUNzDxLBarDLymIy1ET9x5XkPAavna51fwRn2NAz4cF4P1SJEmo4QcmKLuWN51GGutn3bY4XXPtsBEeQ==", "api_version"=>"v2", "id"=>"19"}
2017-08-09 15:30:32 a4d731f9 [app] [I] Current user: admin (administrator)
2017-08-09 15:30:37 a4d731f9 [app] [I] Completed 200 OK in 4799ms (Views: 0.4ms | ActiveRecord: 20.7ms)
--- file repo ---
2017-08-09 15:41:25 394054ad [app] [I] Started POST "/katello/api/v2/repositories/20/upload_content" for 10.13.129.211 at 2017-08-09 15:41:25 -0400
2017-08-09 15:41:25 394054ad [app] [I] Processing by Katello::Api::V2::RepositoriesController#upload_content as HTML
2017-08-09 15:41:25 394054ad [app] [I] Parameters: {"content"=>[#<ActionDispatch::Http::UploadedFile:0x007f5363a7e758 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-2576oi.rpm>, @original_filename="facter-2.4.6-3.el7sat.x86_64.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"facter-2.4.6-3.el7sat.x86_64.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x007f5363a7e730 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-vkohnm.rpm>, @original_filename="gofer-2.7.6-1.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"gofer-2.7.6-1.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x007f5363a7e708 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-17h42oj.rpm>, @original_filename="hiera-1.3.1-2.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"hiera-1.3.1-2.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x007f5363a7e6e0 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-otdn97.rpm>, @original_filename="katello-agent-2.5.0-5.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"katello-agent-2.5.0-5.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x007f5363a7e6b8 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-v0xw3u.rpm>, @original_filename="katello-agent-2.9.0-2.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"katello-agent-2.9.0-2.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x007f5363a7e690 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-gftxtw.rpm>, @original_filename="libtasn1-3.8-3.el7.x86_64.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"libtasn1-3.8-3.el7.x86_64.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x007f5363a7e668 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-n3gpe8.rpm>, @original_filename="pulp-puppet-tools-2.8.7.1-1.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"pulp-puppet-tools-2.8.7.1-1.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x007f5363a7e640 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-1y4hy5r.rpm>, @original_filename="pulp-rpm-handlers-2.8.7.5-1.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"pulp-rpm-handlers-2.8.7.5-1.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x007f5363a7e618 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-xvx3xz.rpm>, @original_filename="puppet-3.8.6-2.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"puppet-3.8.6-2.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x007f5363a7e5f0 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-1d75hnv.rpm>, @original_filename="python-gofer-2.7.6-1.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"python-gofer-2.7.6-1.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x007f5363a7e5c8 @tempfile=#<Tempfile:/tmp/RackMultipart20170809-23802-xhy32d.rpm>, @original_filename="python-gofer-proton-2.7.6-1.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"python-gofer-proton-2.7.6-1.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">], "authenticity_token"=>"9XVAn2T4kyTv3Yx26C2WarrZN1A8gdCZP3xlhnpS9pgNgj4CWa9RXI/XOVn4CZKnz0MNlC5yDC+NZMqum2L0nA==", "api_version"=>"v2", "id"=>"20"}
2017-08-09 15:41:25 394054ad [app] [I] Current user: admin (administrator)
2017-08-09 15:41:29 394054ad [app] [I] Completed 200 OK in 4472ms (Views: 0.4ms | ActiveRecord: 10.4ms)
Created attachment 1311389 [details]
verification screenshot 1
Created attachment 1311390 [details]
verification screenshot 2
I'm associating another Pulp issue with this BZ. It's a fix for regression (same error but in sync) introduced with associated Pulp issue 1903. The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug. The Pulp upstream bug priority is at High. Updating the external tracker on this bug. Verified in Satellite 6.2.12 Snap 1. I was able to successfully upload multiple rpms including one that has non-utf-8 characters in the header. See this for rpm specifics or the rpm I will attach. https://github.com/PulpQE/pulp-fixtures/blob/master/rpm/assets-specs/rpm-with-non-utf-8.spec#L20-L21 Created attachment 1319138 [details]
non-utf8 rpm
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2803 |