Project

General

Profile

Actions

Bug #12898

closed

creating a host with content view and lifecycle enviroment fails with mass security assignment

Added by Justin Sherrill over 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web UI
Target version:
Difficulty:
medium
Triaged:
Fixed in Releases:
Found in Releases:

Description

| ActiveModel::MassAssignmentSecurity::Error (Can't mass-assign protected attributes for Host::Managed: content_facet_attributes): | app/models/host/base.rb:97:in `initialize' | app/models/host/managed.rb:45:in `initialize' | app/models/concerns/foreman/sti.rb:22:in `new_with_cast' | app/models/host.rb:15:in `method_missing' | app/controllers/hosts_controller.rb:580:in `process_hostgroup' | 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'


Related issues 1 (0 open1 closed)

Related to Katello - Tracker #9259: Rails 4 featureResolved02/06/2015

Actions
Actions #1

Updated by Justin Sherrill over 8 years ago

Actions #2

Updated by John Mitsch over 8 years ago

Actions #3

Updated by John Mitsch over 8 years ago

Actions #4

Updated by Eric Helms over 8 years ago

  • translation missing: en.field_release set to 86
Actions #5

Updated by John Mitsch over 8 years ago

I was able to create the host, but when clicking edit, sometime the content view and lifecycle environment do not show up. The correct values of cv and lifecycle environment id are saved in the DB, but they are showing in the edit form. This could be a fluke, but when I put a debugger in https://github.com/Katello/katello/blob/master/app/helpers/katello/hosts_and_hostgroups_helper.rb#L65 the form loads correctly.

Actions #6

Updated by The Foreman Bot about 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to John Mitsch
  • Pull request https://github.com/Katello/katello/pull/5753 added
Actions #7

Updated by John Mitsch about 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF