Bug 769898

Summary: Organizations / Subscriptions error "undefined method 'each' for nil:NilClass
Product: Red Hat Satellite Reporter: Tom McKay <tomckay>
Component: WebUIAssignee: Tom McKay <tomckay>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: sghai
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 769896 Environment:
Last Closed: 2012-08-22 18:16:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 769896    
Bug Blocks: 747354    
Attachments:
Description Flags
Organization/Subscriptions looks fine. none

Description Tom McKay 2011-12-22 16:29:21 UTC
+++ This bug was initially created as a clone of Bug #769896 +++

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:34 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 2 Sachin Ghai 2012-01-06 11:44:33 UTC
verified with latest katello build. 


[root@dhcp201-214 ~]# rpm -qa | grep katello
katello-configure-0.1.49-1.el6.noarch
katello-0.1.167-1.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-cli-common-0.1.33-1.el6.noarch
katello-glue-foreman-0.1.167-1.el6.noarch
katello-trusted-ssl-cert-1.0-1.noarch
katello-glue-candlepin-0.1.167-1.el6.noarch
katello-glue-pulp-0.1.167-1.el6.noarch
katello-httpd-ssl-key-pair-1.0-1.noarch
katello-repos-0.1.4-1.el6.noarch
katello-cli-0.1.33-1.el6.noarch
katello-common-0.1.167-1.el6.noarch
katello-all-0.1.167-1.el6.noarch
katello-certs-tools-1.0.1-1.el6.noarch
[root@dhcp201-214 ~]# 


[root@dhcp201-214 ~]# rpm -qa | grep candlepin
candlepin-tomcat6-0.5.8-1.el6.noarch
candlepin-0.5.8-1.el6.noarch
katello-glue-candlepin-0.1.167-1.el6.noarch
[root@dhcp201-214 ~]# 


The reported issue has been fixed. Please see the attachment in next comment.

Comment 3 Sachin Ghai 2012-01-06 11:45:23 UTC
Created attachment 551131 [details]
Organization/Subscriptions looks fine.