Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.7.0
Description
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.
{\"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\
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