Project

General

Profile

Actions

Bug #11054

closed

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

Added by Joey D about 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web UI
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1223743
Description of problem:

This is still occuring on a new install of 2.2.2 on CentOS 7.

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):
katello 2.2.2

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:

Javascript console shows:

TypeError: Cannot read property 'length' of undefined
at https://xxx-katello-01.xxxx.xxxxx.net/assets/bastion_katello/bastion_katello-ee12c1ee51eaac15da7f7d401951bd41.js:38:20003
at Array.forEach (native)
at Object.forEach (https://xxx-katello-01.xxxx.xxxx.net/assets/bastion/bastion-b162d954f470b4e7df7f9c7b139cdd4d.js:5:21587)
at Scope.$scope.isAnyAvailableContent (https://xxx-katello-01.xxxx.xxxxx.net/assets/bastion_katello/bastion_katello-ee12c1ee51eaac15da7f7d401951bd41.js:38:19943)
at https://xxx-katello-01.xxxx.xxxxx.net/assets/bastion_katello/bastion_katello-ee12c1ee51eaac15da7f7d401951bd41.js:38:20346
at https://xxx-katello-01.xxxx.xxxxx.net/assets/bastion/bastion-b162d954f470b4e7df7f9c7b139cdd4d.js:11:12186
at deferred.promise.then.wrappedCallback (https://xxx-xxxx-01.xxxx.xxxxx.net/assets/bastion/bastion-b162d954f470b4e7df7f9c7b139cdd4d.js:8:13946)
at https://xxx-katello-01.xxxx.xxxx.net/assets/bastion/bastion-b162d954f470b4e7df7f9c7b139cdd4d.js:8:15319
at Scope.$get.Scope.$eval (https://xxx-katello-01.xxxx.xxxx.net/assets/bastion/bastion-b162d954f470b4e7df7f9c7b139cdd4d.js:8:22506)
at Scope.$get.Scope.$digest (https://xxx-katello-01.xxxx.xxxx.net/assets/bastion/bastion-b162d954f470b4e7df7f9c7b139cdd4d.js:8:20555)bastion-b162d954f470b4e7df7f9c7b139cdd4d.js:8 (anonymous function)


Related issues 1 (0 open1 closed)

Copied from Katello - Bug #10575: Product_content tab on activation-key page remains in loading state and getting TypeError: Cannot read property 'length' of undefinedClosedWalden Raines05/21/2015Actions
Actions

Also available in: Atom PDF