Project

General

Profile

Bug #16103

NoMethodError: undefined method `label' for nil:NilClass

Added by Mike McCune almost 3 years ago. Updated 11 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Difficulty:
trivial
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

In certain cases users will remove old entries in the foreman_tasks_tasks table via a rake utility.

This causes dangling references in the ContentViewHistories object in reference to their task object.

This causes:

2016-08-13 19:38:40 [app] [W] Action failed
 | NoMethodError: undefined method `label' for nil:NilClass
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.68/app/models/katello/content_view_history.rb:47:in `humanized_action'

as the self.task object is nil:

case self.task.label

History

#1 Updated by Justin Sherrill over 2 years ago

  • Status changed from New to Resolved
  • Legacy Backlogs Release (now unused) set to 162

This has been resolved by previous changes

Also available in: Atom PDF