Bug #15075
closedunable to view compliance reports
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1336928
Description of problem:
Currently we are unable to view the OSCAP compliance reports and we see this message on the UI.
Oops, we're sorry but something went wrong undefined method `authorized?' for #<#<Class:0x00000008fdbe90>:0x007f59ad4ad158>
2016-05-17 16:17:34 [app] [I] Started GET "/compliance/arf_reports" for 10.10.54.176 at 2016-05-17 16:17:34 -0400
2016-05-17 16:17:34 [app] [I] Processing by ArfReportsController#index as HTML
2016-05-17 16:17:34 [app] [I] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_openscap-0.5.3.5/app/views/arf_reports/_list.html.erb (324.1ms)
2016-05-17 16:17:34 [app] [I] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_openscap-0.5.3.5/app/views/arf_reports/index.html.erb within layouts/application (336.4ms)
2016-05-17 16:17:34 [app] [W] Action failed
| NoMethodError: undefined method `authorized?' for #<#<Class:0x00000008fdbe90>:0x00000008fd9fa0>
| /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_openscap-0.5.3.5/app/views/arf_reports/_list.html.erb:16:in `block in _3b3b8c00374b64565d725f41c0883c8f'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
| /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_openscap-0.5.3.5/app/views/arf_reports/_list.html.erb:13:in `_3b3b8c00374b64565d725f41c0883c8f'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/actionview-4.1.5/lib/action_view/template.rb:145:in `block in render'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/notifications.rb:161:in `instrument'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/actionview-4.1.5/lib/action_view/template.rb:339:in `instrument'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/actionview-4.1.5/lib/action_view/template.rb:143:in `render'
| /opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.0.2/lib/deface/action_view_extensions.rb:41:in `render'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/actionview-4.1.5/lib/action_view/renderer/partial_renderer.rb:306:in `render_partial'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/actionview-4.1.5/lib/action_view/renderer/partial_renderer.rb:279:in `block in render'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/actionview-4.1.5/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/notifications.rb:159:in `block in instrument'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
| /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/notifications.rb:159:in `instrument'
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. After running "foreman_scap_client 1"
2. Navigate to the compliance report page to view the oscap reports, to see the error.
3.
Actual results:
Unable to view compliance reports.
Expected results:
Should be able to see compliance reports.
Additional info:
Updated by Shlomi Zadok almost 8 years ago
- Status changed from New to Closed
- Pull request https://github.com/theforeman/foreman_openscap/pull/164 added