Created attachment 1328995 [details] screenshot of UI Description of problem: We were testing oscap feature for satellite 6.3 snap 16. But when we delete the scap policy, the page of arf reports shows "Oops, we're sorry but something went wrong undefined method `name' for nil:NilClass". Version-Release number of selected component (if applicable): satellite 6.3 snap 16 How reproducible:always Steps to Reproduce: 1. Create scap policy and generate arf report for a host 2. Make sure report has generated. 3. Now delete the scap policy 4. Try to navigate to Hosts -> Report Actual results: The page show "Oops, we're sorry but something went wrong undefined method `name' for nil:NilClass" and production.log show 500 internal server error. Expected results: The report page should display. Additional info:
Created attachment 1328996 [details] log in production.log file
Created redmine issue http://projects.theforeman.org/issues/21062 from this bug
As a workaround, the affected reports would have to be deleted through API.
Upstream bug assigned to mhulan
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21062 has been resolved.
1. Create scap policy and generate arf report for a host 2. Make sure report has generated. 3. Now delete the scap policy 4. Try to navigate to Hosts -> Report If the policy is deleted the UI shows now "Deleted policy". VERIFIED with Sat6.3.0-snap18.0
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:0336