Description of problem: Trying to delete a Puppet content view version throws the error " TypeError: Value (NilClass) '' is not any of: ForemanTasks::Concerns::ActionSubject". Version-Release number of selected component (if applicable): Red Hat Satellite 6.2.2 How reproducible: Usually happens with content views created prior the upgrade to 6.2. I was not able to reproduce it with a new content view after upgrading it. During the troubleshoot this is the error we got: passenger debug: ------------------- [ 2016-10-24 16:11:49.9416 47968/7f2884bd4700 agents/HelperAgent/RequestHandler.h:1384 ]: [Client 20] Processed client data: consumed 4911 bytes [ 2016-10-24 16:11:49.9417 47968/7f2884bd4700 agents/HelperAgent/RequestHandler.h:1362 ]: [Client 20] Processing client data: "{"id":38,"environment_ids":[],"content_view_version_ids":[110]}" [ 2016-10-24 16:11:49.9417 47968/7f2886a9d700 Pool2/Implementation.cpp:1274 ]: [App 48122 stderr] [ 2016-10-24 16:11:49.9415 48336/0x00000007a043d8(Worker 1) request_handler/thread_handler.rb:130 ]: Accepted new request on socket main socket foreman logs: -------------------- 2016-10-24 15:55:31 [app] [I] Started PUT "/katello/api/v2/content_views/38/remove?organization_id=1" for 10.10.58.68 at 2016-10-24 15:55:31 -0400 2016-10-24 15:55:31 [app] [D] Value for params[:environment_ids] was set to nil, because it was one of [], [null] or [null, null, ...]. Go to http://guides.rubyonrails.org/security.html#unsafe-query-generation for more information. 2016-10-24 15:55:31 [app] [I] Processing by Katello::Api::V2::ContentViewsController#remove as JSON 2016-10-24 15:55:31 [app] [I] Parameters: {"id"=>"38", "environment_ids"=>nil, "content_view_version_ids"=>[110], "organization_id"=>"1", "api_version"=>"v2", "content_view"=>{"id"=>"38"}} 2016-10-24 15:55:31 [app] [D] Setting current user thread-local variable to admin 2016-10-24 15:55:31 [foreman-tasks/action] [E] Value (NilClass) '' is not any of: ForemanTasks::Concerns::ActionSubject. (TypeError) Actual results: Does not delete the content view version Expected results: Delete the content view version Additional info:
Created KCS https://access.redhat.com/solutions/2726601
Created redmine issue http://projects.theforeman.org/issues/17929 from this bug
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17929 has been resolved.
Verified in Satellite 6.2.8 Snap 2. Steps: 1. Create a content view with puppet content 2. Publish 3. In the foreman console run Katello::ContentView.find_by(:name => '<content view name>').versions.first.content_view_puppet_environments.destroy_all 4. Attempt to remove the content view version I was unable to remove the version in 6.2.7, but had no issues when upgraded to 6.2.8.
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:0447
qe_test_coverage removed as per discussion in PR https://github.com/SatelliteQE/robottelo/pull/5582