Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3466510B75 for ; Wed, 20 Nov 2013 12:07:49 +0000 (UTC) Received: (qmail 95577 invoked by uid 500); 20 Nov 2013 12:07:44 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 95489 invoked by uid 500); 20 Nov 2013 12:07:43 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 94878 invoked by uid 99); 20 Nov 2013 12:07:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Nov 2013 12:07:36 +0000 Date: Wed, 20 Nov 2013 12:07:36 +0000 (UTC) From: "Aleksandr Kovalenko (JIRA)" To: ambari-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-3822) Selecting newly created config-group throws JS error in manage config-groups dialog. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-3822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aleksandr Kovalenko updated AMBARI-3822: ---------------------------------------- Attachment: AMBARI-3822.patch > Selecting newly created config-group throws JS error in manage config-groups dialog. > ------------------------------------------------------------------------------------ > > Key: AMBARI-3822 > URL: https://issues.apache.org/jira/browse/AMBARI-3822 > Project: Ambari > Issue Type: Task > Components: client > Affects Versions: 1.4.2 > Reporter: Aleksandr Kovalenko > Assignee: Aleksandr Kovalenko > Fix For: 1.4.2 > > Attachments: AMBARI-3822.patch > > > In the {{Manage Configuration Groups}} dialog I created 2 new config-groups. When I selected one of them, the following error was thrown in JS console. > {code} > Uncaught TypeError: Cannot call method 'forEach' of null app.js:39488 > (anonymous function) app.js:39488 > ComputedPropertyPrototype.get ember-latest.js:2949 > get ember-latest.js:1355 > getPath ember-latest.js:1477 > get ember-latest.js:1348 > Ember.Observable.Ember.Mixin.create.get ember-latest.js:7695 > (anonymous function) app.js:39503 > ComputedPropertyPrototype.get ember-latest.js:2949 > get ember-latest.js:1355 > getPath ember-latest.js:1477 > get ember-latest.js:1348 > Ember.Handlebars.getPath ember-latest.js:17921 > observer ember-latest.js:18550 > invoke ember-latest.js:3377 > invokeOnceTimer ember-latest.js:3804 > invoke ember-latest.js:3377 > iter ember-latest.js:3424 > RunLoop.flush ember-latest.js:3480 > RunLoop.end ember-latest.js:3396 > Ember.run.end ember-latest.js:3588 > Ember.run ember-latest.js:3549 > Ember.EventDispatcher.Ember.Object.extend._bubbleEvent ember-latest.js:11288 > (anonymous function) ember-latest.js:11236 > f.event.dispatch jquery-1.7.2.min.js:3 > h.handle.i > {code} > In code, it is the last line of > {code} > availableHosts: function () { > if (this.get('isDefault')) return []; > var unusedHostsMap = {}; > var availableHosts = []; > // parentConfigGroup.hosts(hosts from default group) - are available hosts, which don't belong to any group > this.get('parentConfigGroup.hosts').forEach(function (hostName) { > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)