incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrii Tkach (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-3822) Selecting newly created config-group throws JS error in manage config-groups dialog.
Date Wed, 20 Nov 2013 12:09:35 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-3822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13827593#comment-13827593
] 

Andrii Tkach commented on AMBARI-3822:
--------------------------------------

+1 for the 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)

Mime
View raw message