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 1223743

Summary: Product_content tab on activation-key page remains in loading state and getting TypeError: Cannot read property 'length' of undefined
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: WebUIAssignee: Walden Raines <walden>
WebUI sub component: Katello QA Contact: Sachin Ghai <sghai>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: high    
Priority: unspecified CC: bkearney, mmccune, tkolhar, walden
Version: 6.1.0   
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/10575
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 13:59:14 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:
Bug Depends On:    
Bug Blocks: 1223778    
Attachments:
Description Flags
Product_content tab on activation-key page with TypeError: in dev-tools's console
none
product_content tab is loading state with snap5 C2
none
webUI screenshot from FF37.0 that shows loaded products
none
webUI screenshot from chrome none

Description Sachin Ghai 2015-05-21 11:36:27 UTC
Created attachment 1028090 [details]
Product_content tab on activation-key page with TypeError:  in dev-tools's console

Description of problem:
I was trying to create activation-key. It was created successfully and later I added the subscription to it. But when I select the product_content tab. I got following error in development_tools console:

TypeError: Cannot read property 'length' of undefined

Please see the attached screenshot

Version-Release number of selected component (if applicable):
sat6.1 GA snap5

How reproducible:
always

Steps to Reproduce:
1. create activation-key
2. add subscription
3. select product _content tab

Actual results:
Product_content tab on activation-key page remains in loading state and getting TypeError: Cannot read property 'length' of undefined

Expected results:
it should show all products from selected subscriptions.

Additional info:

Comment 2 Tazim Kolhar 2015-05-21 13:09:51 UTC
*** Bug 1223773 has been marked as a duplicate of this bug. ***

Comment 3 Walden Raines 2015-05-21 14:11:30 UTC
Created redmine issue http://projects.theforeman.org/issues/10575 from this bug

Comment 4 Walden Raines 2015-05-21 14:19:56 UTC
PR: https://github.com/Katello/katello/pull/5242

Comment 5 Bryan Kearney 2015-05-21 18:05:33 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/10575 has been closed
-------------
Walden Raines
Applied in changeset commit:katello|0994bb85a732738213f4db8bea6bcbd22b604ea0.

Comment 7 Sachin Ghai 2015-05-22 12:45:23 UTC
Reproducible with snap5 compose2.

I can still see the page in loading state. Please see attached bz.

Comment 8 Sachin Ghai 2015-05-22 12:45:51 UTC
(In reply to Sachin Ghai from comment #7)
> Reproducible with snap5 compose2.
> 
> I can still see the page in loading state. Please see attached bz.

I mean the attachement.

Comment 9 Sachin Ghai 2015-05-22 12:47:11 UTC
Created attachment 1028768 [details]
product_content tab is loading state with snap5 C2

Comment 13 Sachin Ghai 2015-05-28 09:55:28 UTC
Verified with Sat6.1 GA snap6.

I can see now "product_content" tab under activation_key loads properly. I can see the product listing from the selected subscriptions. Please see the attached screenshot for verification. Thanks for fixing the issue.

Comment 14 Sachin Ghai 2015-05-28 09:57:06 UTC
Created attachment 1031137 [details]
webUI screenshot from FF37.0 that shows loaded products

Comment 15 Sachin Ghai 2015-05-28 09:57:58 UTC
Created attachment 1031138 [details]
webUI screenshot from chrome

Comment 16 Bryan Kearney 2015-08-11 13:34:12 UTC
This bug is slated to be released with Satellite 6.1.

Comment 17 Bryan Kearney 2015-08-12 13:59:14 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.