Bug #21062
closedNavigating to arf_reports page shows undefined method `name' for nil:NilClass
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1494082
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:
Updated by The Foreman Bot about 7 years ago
- Status changed from New to Ready For Testing
- Assignee set to Marek Hulán
- Pull request https://github.com/theforeman/foreman_openscap/pull/293 added
Updated by Marek Hulán about 7 years ago
- Related to Bug #18908: It is not obvious what policy does the report belong to added
Updated by Marek Hulán about 7 years ago
- Subject changed from Navigating to arf_reports page shows undefined method `name' for nil:NilClass to Navigating to arf_reports page shows undefined method `name' for nil:NilClass
- Translation missing: en.field_release set to 305
Introduced in 0.7-stable branch, needs to be cherry-picked there too.
Updated by Marek Hulán about 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_openscap|f707c4adb0f46b2c5acc209d180f0ac867507dc3.
Updated by The Foreman Bot about 7 years ago
- Pull request https://github.com/theforeman/foreman_openscap/pull/295 added