You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Akhil S Naik (JIRA)" <ji...@apache.org> on 2018/05/28 13:07:00 UTC

[jira] [Created] (AMBARI-23961) Ambari is creating unlimited widget dashboards in database if user name contains '_'

Akhil S Naik created AMBARI-23961:
-------------------------------------

             Summary: Ambari is creating unlimited widget dashboards in database if user name contains '_'
                 Key: AMBARI-23961
                 URL: https://issues.apache.org/jira/browse/AMBARI-23961
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.6.2
         Environment: Ambari-2.6.2
            Reporter: Akhil S Naik
         Attachments: Screen Shot 2018-05-28 at 6.22.25 PM.png, Screen Shot 2018-05-28 at 6.22.35 PM.png

Ambari is creating unlimited widget dashboards in database if user name contains '_' and none of them is returned when call : http://<AMBARI_SERVER>:8080/api/v1/users/USER_NAME/activeWidgetLayouts

*Reproduction steps*

Create a User with underscore in ambari , for ex : Test_User
assign cluster user permissions to created user.
Login as Test_User 
Navigate to Services >> Yarn 
Click on Plus icon on UI .
Try to 'Add' any of widgets. 
When try to add any widgets in dashboard there exists a script error refer to Screen Shot 2018-05-28 at 6.22.35 PM.png

Additionally ambari-web client keeps sending the Request to create new widget layout in recursive mode which results in infinite number of duplicate entries in database in widget_layout database and user_Widget_layout database. refer to Screen Shot 2018-05-28 at 6.22.25 PM.png

*root cause :*

Ambari-server saves the dashboard layouts in database by name "USER_SERVICENAME_DASHBOARD" and somewhere parsing logic is going wrong as username contains '_'



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)