You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2019/02/26 17:55:03 UTC
[jira] [Commented] (AMBARI-25102) Dasboard metrics will not load
for ambari user which has dot in their username.
[ https://issues.apache.org/jira/browse/AMBARI-25102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16778369#comment-16778369 ]
Hudson commented on AMBARI-25102:
---------------------------------
SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #10471 (See [https://builds.apache.org/job/Ambari-trunk-Commit/10471/])
AMBARI-25102 Dasboard metrics will not load for ambari user which has (vishalsuvagia: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=aaeadf859cac26a8895409c8ade9f5084ac5935a])
* (edit) ambari-web/app/utils/db.js
> 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
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.8.0, 2.7.4
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> 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)