Actions
Bug #23131
closedError when displaying config report after upgrade to 1.17
Description
All the reports are affected, steps to reproduce with Puppet report:
1) install 1.16
2) provision a host, generate Puppet reports
3) upgrade to 1.17
4) try to view a report that was created before upgrade
2018-04-05 07:44:42 45c89cb6 [app] [I] Started GET "/config_reports/33" for 10.34.131.70 at 2018-04-05 07:44:42 -0400 2018-04-05 07:44:42 45c89cb6 [app] [I] Processing by ConfigReportsController#show as HTML 2018-04-05 07:44:42 45c89cb6 [app] [I] Parameters: {"id"=>"33"} 2018-04-05 07:44:42 45c89cb6 [app] [I] Current user: admin (administrator) 2018-04-05 07:44:42 45c89cb6 [app] [I] Rendering config_reports/show.html.erb within layouts/application 2018-04-05 07:44:42 45c89cb6 [app] [I] Rendered config_reports/_output.html.erb (1.3ms) 2018-04-05 07:44:42 45c89cb6 [app] [I] Rendered config_reports/show.html.erb within layouts/application (18.1ms) 2018-04-05 07:44:42 45c89cb6 [app] [W] Action failed | ActionView::Template::Error: undefined method `with_indifferent_access' for #<ActionController::Parameters:0x007f5e14e844e0> | /usr/share/foreman/app/models/report.rb:51:in `metrics' | /usr/share/foreman/app/views/config_reports/show.html.erb:16:in `_app_views_config_reports_show_html_erb___3509904578320767875_70021027093540' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/template.rb:157:in `block in render' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:168:in `instrument' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/template.rb:352:in `instrument_render_template' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/template.rb:155:in `render' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/template_renderer.rb:52:in `block (2 levels) in render_template' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/abstract_renderer.rb:42:in `block in instrument' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `block in instrument' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb:21:in `instrument' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `instrument' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/abstract_renderer.rb:41:in `instrument' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/template_renderer.rb:51:in `block in render_template' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/template_renderer.rb:59:in `render_with_layout' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/template_renderer.rb:50:in `render_template' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/template_renderer.rb:14:in `render' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/renderer.rb:42:in `render_template' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/renderer/renderer.rb:23:in `render' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/rendering.rb:103:in `_render_template' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/streaming.rb:217:in `_render_template' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/rendering.rb:83:in `render_to_body' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/rendering.rb:52:in `render_to_body' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/renderers.rb:141:in `render_to_body' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/rendering.rb:24:in `render' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/rendering.rb:36:in `render' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render' | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/core_ext/benchmark.rb:12:in `block in ms' | /opt/rh/rh-ruby24/root/usr/share/ruby/benchmark.rb:308:in `realtime'
Updated by Ondřej Pražák almost 7 years ago
- Related to Bug #22809: [Foreman 1.17] Bug on host creation after migration added
Updated by The Foreman Bot almost 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/5408 added
Updated by Ondřej Pražák over 6 years ago
- Status changed from Ready For Testing to Rejected
Actions