Project

General

Profile

Bug #18837

Deletion of SCAP report for Deleted Host fails.

Added by Ondřej Pražák almost 2 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Description of problem: When a host is deleted, its SCAP reports remain. This is appropriate behaviour in my opinion. However, when it is determined that the SCAP reports may be deleted from the system, selecting and deleting the reports, individually or in bulk, for the deleted host fails with a NIL class object error

How reproducible: Always

Component Version 0.5.3

Steps to Reproduce:
1. Assume an existing host with valid configuration for SCAP reporting.
2. Delete the host. SCAP reports should remain.
3. Review and delete the SCAP reports for "Host is deleted"

Actual results:
"Oops, we're sorry but something went wrong undefined method `name' for nil:NilClass"

Expected results:
Report is deleted.

Associated revisions

Revision 6b919436 (diff)
Added by Ondřej Pražák almost 2 years ago

Fixes #18837 - Delete reports when host is missing

Revision 5a54cb89
Added by Marek Hulán almost 2 years ago

Merge pull request #246 from xprazak2/absent-host

Fixes #18837 - Delete reports when host is missing

History

#1 Updated by The Foreman Bot almost 2 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ondřej Pražák
  • Pull request https://github.com/theforeman/foreman_openscap/pull/246 added

#2 Updated by Marek Hulán almost 2 years ago

  • Subject changed from Deletion of SCAP report for Deleted Host fails. to Deletion of SCAP report for Deleted Host fails.
  • Legacy Backlogs Release (now unused) set to 225

#3 Updated by Ondřej Pražák almost 2 years ago

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

Also available in: Atom PDF