Project

General

Profile

Bug #16931

better handle pools with missing subscription ids when listing akeys

Added by Justin Sherrill over 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Activation Key
Target version:
Difficulty:
easy
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

If for some reason a pool is not properly indexed and is missing its associated subscription, listing activation keys will fail with:

2016-10-06 17:39:52 [app] [E] NoMethodError: undefined method `products' for nil:NilClass | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.80/app/models/katello/activation_key.rb:103:in `block in products' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.80/app/models/katello/activation_key.rb:102:in `each' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.80/app/models/katello/activation_key.rb:102:in `products' | /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/helpers.rb:14:in `data_object'

we should handle this better

Associated revisions

Revision c07d3e21 (diff)
Added by Justin Sherrill over 5 years ago

Fixes #16931 - better handle improperly indexed pools

History

#1 Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6396 added

#2 Updated by Chris Duryee over 5 years ago

  • Bugzilla link set to 1387776

#3 Updated by Justin Sherrill over 5 years ago

  • Legacy Backlogs Release (now unused) set to 197

#4 Updated by Justin Sherrill over 5 years ago

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

Also available in: Atom PDF