Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 913520

Summary: Undefined method error while selecting 'By Environments' from Systems tab
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: WebUIAssignee: Justin Sherrill <jsherril>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: NightlyCC: mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-02 14:08:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Undefined method error while listing the systems 'By Environments'
none
complete log none

Description Sachin Ghai 2013-02-21 12:19:24 UTC
Created attachment 700468 [details]
Undefined method error while listing the systems 'By Environments'

Description of problem:
UI raised undefined method error while selecting 'By Environment' from system tab.

Version-Release number of selected component (if applicable):
pulp-server-2.0.6-0.22.rc.el6.noarch
katello-glue-candlepin-1.3.14-1.git.613.fa2f0fa.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
candlepin-selinux-0.7.25-1.el6.noarch
candlepin-tomcat6-0.7.25-1.el6.noarch
katello-1.3.14-1.git.613.fa2f0fa.el6.noarch
candlepin-0.7.25-1.el6.noarch


How reproducible:
always

Steps to Reproduce:
1. Register a system with any env
2. Go to Systems tab --> select 'By Environments'
3.
  
Actual results:
Undefined method error while listing the systems 'By Environments'

Expected results:
no error should be raised by UI when selecting 'By Environment' view.

Additional info:

production.log:

[ERROR 2013-02-21 17:47:17 583e478eb06b7f45dbecfdacdb780130 #2087] undefined method `label' for nil:NilClass (NoMethodError)
/usr/share/katello/app/helpers/application_helper.rb:224:in `url_content_views_proc'
/usr/share/katello/app/helpers/application_helper.rb:182:in `call'
/usr/share/katello/app/helpers/application_helper.rb:182:in `env_select_url'
/usr/share/katello/app/views/common/_env_select.html.haml:25:in `_app_views_common__env_select_html_haml__182092865_70204275715580_204495284'

Comment 1 Sachin Ghai 2013-02-21 12:20:53 UTC
Created attachment 700469 [details]
complete log

Comment 3 Justin Sherrill 2013-05-07 16:55:12 UTC
This seems to no longer be an issue.  Can you confirm sachin?

Comment 4 Sachin Ghai 2013-05-08 05:00:28 UTC
Yes, not reproducible with nightly. 

Katello Version: 1.4.2-1.git.183.c4e1ca7.el6

Please change the status to on_qa, so that I can move it to verified state. Thanks

Comment 5 Sachin Ghai 2013-05-08 12:58:43 UTC
Moving to Verified state as per comment4.

Comment 6 Bryan Kearney 2014-07-02 14:08:56 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.