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 #1

Updated by Lukas Pramuk about 8 years ago

tfm-rubygem-foreman_discovery-5.0.2-1.fm1_12.el7.noarch

foreman-1.13.0-0.develop.201608221148git5908bf4.el7.noarch
foreman-installer-1.13.0-0.develop.201608290324gitad62114.el7.noarch
katello-3.1.0-4.nightly.el7.noarch

Actions #2

Updated by Lukas Pramuk about 8 years ago

Duplicate of #15750

Again we have yet another merged but not packaged changeset.

Actions #3

Updated by Lukas Pramuk about 8 years ago

let use this duplicate issue to track down foreman-discovery plugin is packaged being foreman1.13 compatible.

Title: build foreman-discovery plugin being foreman1.13 compatible

Actions #4

Updated by Lukas Zapletal about 8 years ago

  • Has duplicate Refactor #15750: Add strong parameters to Discovery Plugin added
Actions #5

Updated by Lukas Zapletal about 8 years ago

  • Status changed from New to Duplicate

Thank you, there are two more patches to go and then I will make new nightly: #15750 and #12634.

Actions #6

Updated by Justin Sherrill about 8 years ago

  • Translation missing: en.field_release set to 166
Actions

Also available in: Atom PDF