Project

General

Profile

Actions

Bug #16103

closed

NoMethodError: undefined method `label' for nil:NilClass

Added by Mike McCune over 7 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Difficulty:
trivial
Triaged:
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
Actions #1

Updated by Justin Sherrill over 7 years ago

  • Status changed from New to Resolved
  • translation missing: en.field_release set to 162

This has been resolved by previous changes

Actions

Also available in: Atom PDF