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 over 9 years ago. Updated over 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 #1

Updated by Joey D over 9 years ago

  • Copied from Bug #10575: Product_content tab on activation-key page remains in loading state and getting TypeError: Cannot read property 'length' of undefined added
Actions #2

Updated by Walden Raines over 9 years ago

  • Status changed from Closed to Assigned
  • Bugzilla link deleted (1223743)
  • Pull request added
  • Pull request deleted (https://github.com/Katello/katello/pull/5242)
Actions #3

Updated by Matthew Ceroni over 9 years ago

Experiencing this issue as well on 2.2.2 installed on CentOS 6.

I believe (or at least hope) that this is my issue in which systems registered via an activation key with subscriptions attached don't get those subscriptions attached. As I am unable to view the Product Content page to change repository enablement.

Actions #4

Updated by Walden Raines over 9 years ago

  • Status changed from Assigned to Closed

This will be solved with a new version of rabl: https://github.com/theforeman/foreman-packaging/pull/709

Actions

Also available in: Atom PDF