You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Andrii Tkach (JIRA)" <ji...@apache.org> on 2019/01/14 14:11:00 UTC

[jira] [Created] (AMBARI-25102) Dasboard metrics will not load for ambari user which has dot in their username.

Andrii Tkach created AMBARI-25102:
-------------------------------------

             Summary: Dasboard metrics will not load for ambari user which has dot in their username.
                 Key: AMBARI-25102
                 URL: https://issues.apache.org/jira/browse/AMBARI-25102
             Project: Ambari
          Issue Type: Bug
          Components: ambari-web
    Affects Versions: 2.7.0
            Reporter: Andrii Tkach
            Assignee: Andrii Tkach
             Fix For: 2.8.0


Ambari users which as dot in their username will not be able to see the dashboard metrics. 

It looks that js scripts are truncating the username to use only first part before dot and fails with below error.
{code:java}
{\"file\":\"http://c116-node1.raghav.com:8080/javascripts/vendor.js\",\"line\":13510,\"col\":12,\"error\":\"Uncaught Error: Object in path user-pref-test1 could not be found or was destroyed.\",\"stackTrace\":\"Error: Object in path user-pref-test1 could not be found or was destroyed.\\n    at setPath (/vendor.js:13510:18)\\n    at Object.set (/vendor.js:13387:12)\\n    at Object.App.db.set (/app.js:200972:6)\\n    at Class.setDBProperty (/app.js:72577:12)\\n    at Class.saveWidgetsSettings (/app.js:238244:10)\\n    at Class.getUserPrefErrorCallback (/app.js:238258:10)\\n    at Class.newFunc [as getUserPrefErrorCallback] (/vendor.js:12954:16)\\n    at Class.opt.error (/app.js:193035:36)\\n    at fire (/vendor.js:1141:36)\\n    at Object.fireWith [as rejectWith] (/vendor.js:1252:15)\"},\"1541550308010\
{code}

Tried manually setting the persist data for the user which dint help. 

Steps to reproduce: (on Ambari 2.7.1)
-->Create user test.user1 in ambari: 
-->Assign privileges to see the dashboard
-->Login as test.user1, which should show loading of metric but never completes.

All other features work fine exception dashboard metrics





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