Bug 769896

Summary: Organizations / Subscriptions error "undefined method 'each' for nil:NilClass
Product: [Retired] Subscription Asset Manager Reporter: Tom McKay <tomckay>
Component: candlepinAssignee: Tom McKay <tomckay>
Status: CLOSED CURRENTRELEASE QA Contact: SAM QE List <sam-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0Keywords: Triaged
Target Milestone: ---   
Target Release: 1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 769898 (view as bug list) Environment:
Last Closed: 2012-04-27 00:21:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 769898    

Description Tom McKay 2011-12-22 16:27:47 UTC
Description of problem:

After importing a manifest, visit ACME_Organization's Organizations / Subscriptions page to see error.

Version-Release number of selected component (if applicable):

candlepin-0.5.8-1

Comment 1 Tom McKay 2012-01-03 22:30:14 UTC
ommit b050732b0b88ef35a92b94c829279107862d5857
Author: Tom McKay <thomasmckay>
Date:   Tue Jan 3 17:18:56 2012 -0500

    Bug 769896 - Organizations / Subscriptions error "undefined method 'each' for nil:NilClass
    https://bugzilla.redhat.com/show_bug.cgi?id=769896
    https://bugzilla.redhat.com/show_bug.cgi?id=769898
    + This problem arose from an additional class, MarketingProduct, that extended
      Product. The lazy_accessor.rb methods could not handle this which caused
      the attributes to go missing. The fix is to check a class's parent for the
      lazy_attributes method and add it to the list of attributes. (This is done
      recursively up the hierarchy until a class stops responding to that method.)

Comment 4 Eric Sammons 2012-01-13 18:24:45 UTC
VERIFIED

After loading a new manifest into your Organization navigate to Organizations/Subscriptions to see subscriptions applied to Org.