Actions
Bug #12884
closedImport subnets from smart proxy fails with "Can't mass-assign protected attributes for Subnet: dhcp"
Difficulty:
trivial
Triaged:
Pull request:
Description
Full stack:
ActiveModel::MassAssignmentSecurity::Error in SubnetsController#import Can't mass-assign protected attributes for Subnet: dhcp Extracted source (around line #196): next if exists?(attrs) attrs.merge!(parse_dhcp_options(s['options'])) if s['options'].present? new(attrs.update(:dhcp => proxy)) end.compact end Rails.root: /home/tbrisker/foreman Application Trace | Framework Trace | Full Trace app/models/subnet.rb:196:in `block in import' app/models/subnet.rb:190:in `map' app/models/subnet.rb:190:in `import' app/controllers/subnets_controller.rb:61:in `import' 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: {"smart_proxy_id"=>"3-proxy-localdomain-net"}
Updated by Tomer Brisker almost 9 years ago
- Related to Bug #7568: Use attr_accessible for rails 4 upgrade added
Updated by The Foreman Bot almost 9 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2992 added
Updated by Dominic Cleal almost 9 years ago
- Translation missing: en.field_release set to 71
Updated by Anonymous almost 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset e42c1105d8ea4266f12a1bd076d405af00e09ea7.
Actions