incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonenko Alexander (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-3836) Unable to close manage-config-groups dialog when only Default group present
Date Thu, 21 Nov 2013 06:49:38 GMT

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

Antonenko Alexander commented on AMBARI-3836:
---------------------------------------------

[~srimanth.gunturi] selectedConfigGroup.id for Default config group is undefined. And providing
undefined for findProperty function is wrong, even if it does not fire critical error.

> Unable to close manage-config-groups dialog when only Default group present
> ---------------------------------------------------------------------------
>
>                 Key: AMBARI-3836
>                 URL: https://issues.apache.org/jira/browse/AMBARI-3836
>             Project: Ambari
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 1.4.3
>            Reporter: Antonenko Alexander
>            Assignee: Antonenko Alexander
>             Fix For: 1.4.3
>
>         Attachments: AMBARI-3836.patch, changes.patch
>
>
> I had only the Default config-group when I launched the manage config-groups dialog.
When I clicked on Cancel or X, it would not close dialog with the following error:
> {noformat}
> Uncaught TypeError: Cannot read property 'id' of null 
> {noformat}
> This was in method {{updateConfigGroupOnServicePage()}} at the first line below
> {code}
> selectedConfigGroup = managedConfigGroups.findProperty('id', selectedConfigGroup.id);
>         if(selectedConfigGroup){
>           mainServiceInfoConfigsController.set('selectedConfigGroup', selectedConfigGroup);
>         }else{
>           mainServiceInfoConfigsController.set('selectedConfigGroup',  managedConfigGroups.findProperty('isDefault',
true));
>         }
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message