Bug 769896 - Organizations / Subscriptions error "undefined method 'each' for nil:NilClass
Summary: Organizations / Subscriptions error "undefined method 'each' for nil:NilClass
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Subscription Asset Manager
Classification: Retired
Component: candlepin
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 1.0
Assignee: Tom McKay
QA Contact: SAM QE List
URL:
Whiteboard:
Depends On:
Blocks: 769898
TreeView+ depends on / blocked
 
Reported: 2011-12-22 16:27 UTC by Tom McKay
Modified: 2012-04-27 00:21 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 769898 (view as bug list)
Environment:
Last Closed: 2012-04-27 00:21:46 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.