Project

General

Profile

Actions

Bug #16362

closed

foreman-discovery still uses attr_accessible

Added by Lukas Pramuk about 8 years ago. Updated over 6 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

After plugin enablement the webapp is broken, katello not running...

(x) Web application could not be started

Host::Managed is using attr_accessible so must either be converted to strong parameters, or add the protected_attributes gem (RuntimeError)
/usr/share/foreman/config/initializers/active_record_extensions.rb:21:in `attr_accessible'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-5.0.2/app/models/host/managed_extensions.rb:15:in `block in <module:ManagedExtensions>'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/concern.rb:120:in `class_eval'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/concern.rb:120:in `append_features'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-5.0.2/lib/foreman_discovery/engine.rb:170:in `include'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-5.0.2/lib/foreman_discovery/engine.rb:170:in `block in <class:Engine>'

Related to #15741
It looks like foreman-discovery reqiures similar changes as well.


Related issues 1 (0 open1 closed)

Has duplicate Discovery - Refactor #15750: Add strong parameters to Discovery PluginClosedLukas Zapletal07/20/2016Actions
Actions

Also available in: Atom PDF