Project

General

Profile

Actions

Bug #12790

closed

Can't mass-assign protected attributes: content_facet_attributes, content_source_id

Added by Thomas McKay over 8 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Normal
Category:
Hosts
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Edited a host created via API and changed IP address.

foreman-tasks (0.7.7) app/models/foreman_tasks/concerns/action_triggering.rb:38:in `block in update_attributes'
foreman-tasks (0.7.7) app/models/foreman_tasks/concerns/action_triggering.rb:110:in `dynflow_task_wrap'
foreman-tasks (0.7.7) app/models/foreman_tasks/concerns/action_triggering.rb:38:in `update_attributes'
app/controllers/hosts_controller.rb:103:in `block in update'
app/models/taxonomy.rb:75:in `block in no_taxonomy_scope'
app/models/taxonomy.rb:82:in `block (2 levels) in as_taxonomy'
app/models/concerns/foreman/thread_session.rb:147:in `as_location'
app/models/taxonomy.rb:81:in `block in as_taxonomy'
app/models/concerns/foreman/thread_session.rb:112:in `as_org'
app/models/taxonomy.rb:80:in `as_taxonomy'
app/models/taxonomy.rb:74:in `no_taxonomy_scope'
app/controllers/hosts_controller.rb:100:in `update'
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'
{"utf8"=>"✓",
 "_method"=>"put",
 "authenticity_token"=>"NeW/Y2r9hOPlqn1RlFBy9NUCCxWCAkeqAoMIGTVsrjk=",
 "host"=>{"name"=>"remote",
 "hostgroup_id"=>"",
 "content_facet_attributes"=>{"lifecycle_environment_id"=>"",
 "content_view_id"=>"",
 "id"=>""},
 "environment_id"=>"",
 "content_source_id"=>"",
 "puppetclass_ids"=>[""],
 "managed"=>"t",
 "progress_report_id"=>"[FILTERED]",
 "interfaces_attributes"=>{"0"=>{"_destroy"=>"0",
 "mac"=>"56:84:7a:fe:97:9a",
 "identifier"=>"",
 "name"=>"remote",
 "ip"=>"192.168.121.43",
 "managed"=>"1",
 "primary"=>"1",
 "provision"=>"1",
 "execution"=>"1",
 "tag"=>"",
 "attached_to"=>"",
 "id"=>"4"}},
 "architecture_id"=>"1",
 "operatingsystem_id"=>"1",
 "disk"=>"",
 "is_owned_by"=>"3-Users",
 "enabled"=>"1",
 "model_id"=>"",
 "comment"=>"",
 "overwrite"=>"false"},
 "bare_metal_capabilities"=>"build",
 "id"=>"remote.example.com"}
Actions #1

Updated by Eric Helms over 8 years ago

  • translation missing: en.field_release set to 86
  • Triaged changed from No to Yes
Actions #2

Updated by The Foreman Bot over 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Daniel Lobato Garcia
  • Pull request https://github.com/theforeman/foreman-packaging/pull/966 added
Actions #3

Updated by Eric Helms about 8 years ago

  • Status changed from Ready For Testing to Resolved
Actions

Also available in: Atom PDF