Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25102

Dasboard metrics will not load for ambari user which has dot in their username.

    XMLWordPrintableJSON

Details

    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

      Attachments

        Activity

          People

            atkach Andrii Tkach
            atkach Andrii Tkach
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h