Actions
Bug #13032
closedCan't mass-assign protected attributes for Hostgroup: content_source_id, id
Description
2016-01-06T18:23:14 [app] [I] Started POST "/hostgroups" for 192.168.121.1 at 2016-01-06 18:23:14 -0500 2016-01-06T18:23:14 [app] [I] Processing by HostgroupsController#create as */* 2016-01-06T18:23:14 [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"7h320QIS3fEOzBfYgDnu0fle6wefk5S4SH69uy0YkuU=", "hostgroup"=>{"name"=>"Parent", "lifecycle_environment_id"=>"6", "content_view_id"=>"9", "environment_id"=>"3", "content_source_id"=>"1", "puppet_ca_proxy_id"=>"1", "puppet_proxy_id"=>"1", "puppetclass_ids"=>[""], "domain_id"=>"1", "realm_id"=>"", "architecture_id"=>"1", "operatingsystem_id"=>"1", "ptable_id"=>"", "root_pass"=>"[FILTERED]", "group_parameters_attributes"=>{"1452122552250"=>{"name"=>"abc", "value"=>"[FILTERED]", "hidden_value"=>"[FILTERED]", "_destroy"=>"false"}}, "location_ids"=>[""], "organization_ids"=>["", "3"], "id"=>""}, "kt_activation_keys"=>""} 2016-01-06T18:23:14 [app] [D] Setting current user thread-local variable to Admin User 2016-01-06T18:23:14 [app] [D] Setting current organization thread-local variable to Mega Corporation 2016-01-06T18:23:14 [app] [D] Setting current location thread-local variable to none 2016-01-06T18:23:14 [app] [I] Completed 500 Internal Server Error in 46ms 2016-01-06T18:23:14 [app] [F] | ActiveModel::MassAssignmentSecurity::Error (Can't mass-assign protected attributes for Hostgroup: content_source_id, id): | app/controllers/hostgroups_controller.rb:41:in `create' | app/controllers/concerns/application_shared.rb:13:in `set_timezone' | app/models/concerns/foreman/thread_session.rb:32:in `clear_thread' | lib/middleware/catch_json_parse_errors.rb:9:in `call'
I am not very familiar with hostgroups so am not sure how to suggest reproducing this.
Updated by Thomas McKay over 8 years ago
Perhaps related, though different route.
http://projects.theforeman.org/issues/7597
Updated by Ohad Levy over 8 years ago
- Category deleted (
Host groups)
katello extensions simply need to add the additional attributes, something similar to https://github.com/theforeman/foreman_discovery/commit/1070ab85ea68c9d323e724cc47cac0717b9fd186
Updated by Eric Helms over 8 years ago
- Translation missing: en.field_release set to 86
Updated by Partha Aji over 8 years ago
- Is duplicate of Bug #13860: Host Group create raising a Mass Assign error added
Actions