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 1204602 - could not update gpg-key, UI raises red-cross without any error and logs says unsupported media type
Summary: could not update gpg-key, UI raises red-cross without any error and logs says...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Sachin Ghai
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-23 07:07 UTC by Sachin Ghai
Modified: 2017-02-23 20:16 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 13:57:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
on updating gpg-key, UI shows a redblock but without any error. (39.92 KB, image/png)
2015-03-23 07:07 UTC, Sachin Ghai
no flags Details
gpg-key can be updated from webUI successfully (60.08 KB, image/png)
2015-06-11 11:07 UTC, Sachin Ghai
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 10671 0 None None None 2016-04-22 16:44:00 UTC

Description Sachin Ghai 2015-03-23 07:07:49 UTC
Created attachment 1005214 [details]
on updating gpg-key, UI shows a redblock but without any error.

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:

Comment 3 Mike McCune 2015-06-01 18:17:52 UTC
marking as a blocker as we need to support uploading gpg keys and this is a regression from 6.0

Comment 4 Steve Loranz 2015-06-01 19:39:57 UTC
Created redmine issue http://projects.theforeman.org/issues/10671 from this bug

Comment 5 Mike McCune 2015-06-09 18:14:50 UTC
merged 

https://github.com/Katello/katello/pull/5265

Comment 8 Sachin Ghai 2015-06-11 11:05:54 UTC
Verified with sat6.1 GA snap8 RC1.

I can update the gpg-key file successfully:

2015-06-11 07:03:05 [I] Processing by Katello::Api::V2::GpgKeysController#content as HTML
2015-06-11 07:03:05 [I]   Parameters: {"content"=>#<ActionDispatch::Http::UploadedFile:0x0000000f2c9bb0 @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/RackMultipart20150611-24084-1izt85r>>, "authenticity_token"=>"BXEwZ+0xzqLq6TTmGyQZWfVdA7Xe97bx9+G8iNw/EFI=", "api_version"=>"v2", "id"=>"2"}
2015-06-11 07:03:05 [I] Completed 200 OK in 15ms (Views: 0.2ms | ActiveRecord: 8.8ms)
2015-06-11 07:03:06 [I] Processing by Katello::Api::V2::GpgKeysController#show as JSON
2015-06-11 07:03:06 [I]   Parameters: {"organization_id"=>"1", "api_version"=>"v2", "id"=>"2"}
2015-06-11 07:03:06 [I]   Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.48/app/views/katello/api/v2/gpg_keys/show.json.rabl within katello/api/v2/layouts/resource (6.0ms)
2015-06-11 07:03:06 [I] Completed 200 OK in 10ms (Views: 5.9ms | ActiveRecord: 1.2ms)

Comment 9 Sachin Ghai 2015-06-11 11:07:36 UTC
Created attachment 1037627 [details]
gpg-key can be updated from webUI successfully

Comment 11 Bryan Kearney 2015-08-11 13:31:45 UTC
This bug is slated to be released with Satellite 6.1.

Comment 12 Bryan Kearney 2015-08-12 13:57:32 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.


Note You need to log in before you can comment on or make changes to this bug.