Project

General

Profile

Actions

Bug #21062

closed

Navigating to arf_reports page shows undefined method `name' for nil:NilClass

Added by Marek Hulán over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Fixed in Releases:
Found in Releases:

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:


Related issues 1 (0 open1 closed)

Related to OpenSCAP - Bug #18908: It is not obvious what policy does the report belong toClosedOndřej Pražák03/15/2017Actions
Actions #1

Updated by The Foreman Bot over 6 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
Actions #2

Updated by Marek Hulán over 6 years ago

  • Related to Bug #18908: It is not obvious what policy does the report belong to added
Actions #3

Updated by Marek Hulán over 6 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.

Actions #4

Updated by Marek Hulán over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #5

Updated by The Foreman Bot over 6 years ago

  • Pull request https://github.com/theforeman/foreman_openscap/pull/295 added
Actions

Also available in: Atom PDF