Bug 769898 - 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: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: Unspecified
Assignee: Tom McKay
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On: 769896
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2011-12-22 16:29 UTC by Tom McKay
Modified: 2013-03-27 20:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 769896
Environment:
Last Closed: 2012-08-22 18:16:01 UTC
Target Upstream Version:


Attachments (Terms of Use)
Organization/Subscriptions looks fine. (36.28 KB, image/png)
2012-01-06 11:45 UTC, Sachin Ghai
no flags Details

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.


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