Problem:
Cannot add parameter to organizations. An errror occurs about already used parameter name.
Expected outcome:
Adding new parameter to organizations doesn’t trigger an error.
Foreman and Proxy versions:
Foreman 1.19RC1, Katello 3.8RC1
Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
2018-08-10T12:43:33 [I|app|] Started PATCH "/organizations/1-myorg" for 10.10.0.20 at 2018-08-10 12:43:33 +0200
2018-08-10T12:43:33 [I|app|9ba83] Processing by OrganizationsController#update as HTML
2018-08-10T12:43:33 [I|app|9ba83] Parameters: {"utf8"=>"✓", "authenticity_token"=>"YwCxHz5EP+azBisLMYiPJVnlThe7NrPiWP32Q8v4VaGwOoasNN/JkM87mj/bwJNDgdQ462jFHtG5YKJFKj+0MA==", "organization"=>{"name"=>"myorg", "service_level"=>"", "description"=>"", "ignore_types"=>["0", "0", "SmartProxy", "0", "Subnet", "0", "ComputeResource", "0", "Medium", "0", "ProvisioningTemplate", "0", "Ptable", "0", "Domain", "0", "Realm", "0", "Environment", "0", "Hostgroup"], "user_ids"=>[""], "smart_proxy_ids"=>["2", "1", "4", "3", ""], "subnet_ids"=>[""], "compute_resource_ids"=>[""], "medium_ids"=>[""], "provisioning_template_ids"=>["31", ""], "ptable_ids"=>[""], "domain_ids"=>["6", "5", "1", "3", "4", "2", ""], "realm_ids"=>[""], "environment_ids"=>["1", ""], "hostgroup_ids"=>["6", "4", "2", "5", "3", ""], "location_ids"=>["4", "5", "6", "8", "", "2", "7"], "organization_parameters_attributes"=>{"1533897804222"=>{"name"=>"randomparameter", "value"=>"[FILTERED]", "hidden_value"=>"[FILTERED]", "_destroy"=>"false"}}}, "commit"=>"Submit", "id"=>"1-myorg"}
2018-08-10T12:43:33 [I|app|9ba83] Current user set to admin (admin)
2018-08-10T12:43:34 [E|app|9ba83] Failed to save: Organization parameters Please ensure the following parameters name are unique
2018-08-10T12:43:34 [I|app|9ba83] Rendering taxonomies/edit.html.erb within layouts/application
2018-08-10T12:43:34 [I|app|9ba83] Rendered common_parameters/_parameter.html.erb (1.1ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered common_parameters/_parameter.html.erb (1.2ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered common_parameters/_parameter.html.erb (1.0ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered common_parameters/_parameters.html.erb (5.9ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered taxonomies/_form.html.erb (119.8ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered taxonomies/edit.html.erb within layouts/application (126.5ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered layouts/_application_content.html.erb (0.7ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendering layouts/base.html.erb
2018-08-10T12:43:34 [I|app|9ba83] Rendered home/_organization_dropdown.html.erb (1.7ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered home/_location_dropdown.html.erb (2.4ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered home/_org_switcher.html.erb (4.6ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered home/_user_dropdown.html.erb (1.0ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered home/_topbar.html.erb (6.2ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered home/_vertical_menu.html.erb (2.1ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered home/_vertical_menu.html.erb (2.1ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered home/_vertical_menu.html.erb (0.7ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered home/_vertical_menu.html.erb (13.6ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered home/_vertical_menu.html.erb (2.3ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered home/_vertical_menu.html.erb (1.6ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered home/_vertical_menu.html.erb (16.0ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered home/_vertical_menu.html.erb (2.2ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered home/_vertical_taxonomies.html.erb (1.9ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered home/_vertical_taxonomies.html.erb (3.2ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered home/_vertical_menu.html.erb (0.8ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered home/_navbar.html.erb (51.2ms)
2018-08-10T12:43:34 [I|app|9ba83] Rendered layouts/base.html.erb (59.5ms)
2018-08-10T12:43:34 [I|app|9ba83] Completed 200 OK in 407ms (Views: 178.0ms | ActiveRecord: 40.6ms)