Bug 1494082 - Navigating to arf_reports page shows undefined method `name' for nil:NilClass
Summary: Navigating to arf_reports page shows undefined method `name' for nil:NilClass
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: SCAP Plugin
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Marek Hulan
QA Contact: Kedar Bidarkar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-21 12:39 UTC by Nikhil Kathole
Modified: 2019-09-26 14:37 UTC (History)
6 users (show)

Fixed In Version: foreman_openscap 0.7.7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 17:06:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot of UI (17.63 KB, image/png)
2017-09-21 12:39 UTC, Nikhil Kathole
no flags Details
log in production.log file (21.09 KB, text/plain)
2017-09-21 12:40 UTC, Nikhil Kathole
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 21062 0 None None None 2017-09-21 20:11:38 UTC

Description Nikhil Kathole 2017-09-21 12:39:23 UTC
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:

Comment 1 Nikhil Kathole 2017-09-21 12:40:42 UTC
Created attachment 1328996 [details]
log in production.log file

Comment 2 Marek Hulan 2017-09-21 20:11:36 UTC
Created redmine issue http://projects.theforeman.org/issues/21062 from this bug

Comment 3 Marek Hulan 2017-09-21 20:19:07 UTC
As a workaround, the affected reports would have to be deleted through API.

Comment 5 Satellite Program 2017-09-21 22:05:50 UTC
Upstream bug assigned to mhulan

Comment 6 Satellite Program 2017-09-21 22:05:53 UTC
Upstream bug assigned to mhulan

Comment 7 Satellite Program 2017-09-26 20:06:36 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21062 has been resolved.

Comment 8 Kedar Bidarkar 2017-10-03 18:59:34 UTC
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

Comment 10 Bryan Kearney 2018-02-21 17:06:02 UTC
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


Note You need to log in before you can comment on or make changes to this bug.