Project

General

Profile

Bug #10671

could not update gpg-key, UI raises red-cross without any error and logs says unsupported media type

Added by Steve Loranz over 6 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Web UI
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

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:

Associated revisions

Revision 81af74b5 (diff)
Added by Steve Loranz over 6 years ago

Fixes #10671 - Fix upload on gpg_key BZ1204602

Revision d20de4bd
Added by David Davis over 6 years ago

Merge pull request #5265 from steveloranz/BZ1204602

Fixes #10671 - Fix upload on gpg_key BZ1204602

History

#1 Updated by Eric Helms over 6 years ago

  • Legacy Backlogs Release (now unused) set to 31
  • Triaged changed from No to Yes

#2 Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5265 added
  • Pull request deleted ()

#3 Updated by Anonymous over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF