Actions
Bug #12799
closedCreating new compute resource fails with "Can't mass-assign protected attributes: uuid"
Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - libvirt
Target version:
Description
Create a new libvirt resource -> save -> get stack trace:
ActiveModel::MassAssignmentSecurity::Error in ComputeResourcesController#create Can't mass-assign protected attributes: uuid Rails.root: /home/tbrisker/foreman Application Trace | Framework Trace | Full Trace app/models/compute_resource.rb:73:in `new' app/models/compute_resource.rb:73:in `block in new_provider' app/models/compute_resource.rb:72:in `each' app/models/compute_resource.rb:72:in `new_provider' app/controllers/compute_resources_controller.rb:26: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' Request Parameters: {"utf8"=>"✓", "authenticity_token"=>"vCzf6Yl1G6hDMqg4tOUU83IFZpf4WItyPaqRqq8V31I=", "compute_resource"=>{"name"=>"local", "description"=>"", "url"=>"qemu:///system", "display_type"=>"VNC", "set_console_password"=>"[FILTERED]", "uuid"=>"5ED58601-545B-11CB-83D8-BE9FEEB2C1AB", "location_ids"=>[""], "organization_ids"=>[""]}, "commit"=>"Submit", "locale"=>nil}
Updated by Dominic Cleal about 9 years ago
- Translation missing: en.field_release set to 71
Updated by Tomer Brisker about 9 years ago
- Related to Bug #7568: Use attr_accessible for rails 4 upgrade added
Updated by The Foreman Bot about 9 years ago
- Status changed from New to Ready For Testing
- Assignee set to Tomer Brisker
- Pull request https://github.com/theforeman/foreman/pull/2973 added
Updated by Anonymous about 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 48526224bb9ab467e97141bd5c56b325b109fd99.
Actions