Bug #10671
closedcould not update gpg-key, UI raises red-cross without any error and logs says unsupported media type
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1204602
Description of problem:
I was trying to update gog-key file from webUI. and got following in production.log:
--
2015-03-23 02:59:29 [I] Processing by Katello::Api::V2::GpgKeysController#content as HTML
2015-03-23 02:59:29 [I] Parameters: {"content"=>#<ActionDispatch::Http::UploadedFile:0x0000000a61e4c8 @original_filename="RPM-GPG-KEY-redhat-release", @content_type="application/octet-stream", @headers="Content-Disposition: form-data; name=\"content\"; filename=\"RPM-GPG-KEY-redhat-release\"\r\nContent-Type: application/octet-stream\r\n", @tempfile=#<File:/tmp/RackMultipart20150323-32417-10mgcs9>>, "authenticity_token"=>"cfFEZ6+GNiWvIddDVKunD3r17QVtJrQgN4Q/468aKpU=", "api_version"=>"v2", "id"=>"50"}
2015-03-23 02:59:29 [I] Rendered api/v2/errors/unsupported_content_type.json.rabl within api/v2/layouts/error_layout (1.6ms)
2015-03-23 02:59:29 [I] Filter chain halted as :check_content_type rendered or redirected
2015-03-23 02:59:29 [I] Completed 415 Unsupported Media Type in 9ms (Views: 6.4ms | ActiveRecord: 0.0ms)
--
Version-Release number of selected component (if applicable):
sat6 beta snap7 compose 3
Satellite-6.1.0-RHEL-6-20150320.1
How reproducible:
always
Steps to Reproduce:
1. create a gpg-key
2. update gpg-key file
3.
Actual results:
2015-03-23 02:59:29 [I] Completed 415 Unsupported Media Type in 9ms (Views: 6.4ms | ActiveRecord: 0.0ms)
no error on UI, empty redhat block without any error
Expected results:
UI should allow to update the gog-key and in any case if there is any error, UI should show that error.
Additional info:
Updated by Eric Helms over 9 years ago
- Translation missing: en.field_release set to 31
- Triaged changed from No to Yes
Updated by The Foreman Bot over 9 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/5265 added
- Pull request deleted (
)
Updated by Anonymous over 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|81af74b5d97818a6345c4fc9544a3b2b834ec37b.