UI: monitor dashboard for network fails if the user doesnt have perms

Bug #1735018 reported by Senthilnathan Murugappan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.1
Fix Committed
Undecided
Biswajit Mandal
Trunk
Fix Committed
Undecided
Biswajit Mandal

Bug Description

UI monitor dashboard for network fails if the user doesnt have perms

/usr/src/contrail/contrail-web-controller/webroot/common/api/nwMon.utils.js:59
    keys.forEach(function(val, i){
         ^
TypeError: Cannot call method ‘forEach’ of undefined
    at Object.makeUVEList (/usr/src/contrail/contrail-web-controller/webroot/common/api/nwMon.utils.js:59:10)
    at /usr/src/contrail/contrail-web-controller/webroot/monitor/networking/api/network.mon.api.js:675:39
    at /usr/src/contrail/contrail-web-controller/webroot/monitor/networking/api/network.mon.api.js:2128:13
    at /usr/src/contrail/contrail-web-core/src/serverroot/common/configServer.api.js:24:9
    at /usr/src/contrail/contrail-web-core/src/serverroot/web/api/configServer.main.api.js:195:9
    at doSendApiServerRespToApp (/usr/src/contrail/contrail-web-core/src/serverroot/web/api/configServer.main.api.js:108:9)
    at /usr/src/contrail/contrail-web-core/src/serverroot/web/api/configServer.main.api.js:123:13
    at APIServer.retryMakeCall (/usr/src/contrail/contrail-web-core/src/serverroot/common/rest.api.js:209:5)
    at Request.<anonymous> (/usr/src/contrail/contrail-web-core/src/serverroot/common/rest.api.js:333:18)
    at Request.emit (events.js:98:17)
11/28/2017 03:01:06 PM - debug: The worker #5 has disconnected.
11/28/2017 03:01:06 PM - error: The worker #5 has exited with exit code 8

Tags: rbac ui
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/37953
Submitter: Biswajit Mandal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/37954
Submitter: Biswajit Mandal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/37953
Committed: http://github.com/Juniper/contrail-web-controller/commit/e565846d49086ec1afeb4c44be5574b8c56ff8c5
Submitter: Zuul (<email address hidden>)
Branch: master

commit e565846d49086ec1afeb4c44be5574b8c56ff8c5
Author: Biswajit Mandal <email address hidden>
Date: Tue Nov 28 15:24:10 2017 -0800

monitor dashboard for network fails if the user doesnt have perms

In error case of VN get, return correct format of structure in stead of
empty array.

Change-Id: Ib614a3718825350d7b8c3da2f7ffcd2affe3ddc5
Closes-Bug: #1735018

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/37954
Committed: http://github.com/Juniper/contrail-web-controller/commit/1b88cd0c93accb3e1230f4fdaefc359c6fec52a8
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 1b88cd0c93accb3e1230f4fdaefc359c6fec52a8
Author: Biswajit Mandal <email address hidden>
Date: Tue Nov 28 15:24:10 2017 -0800

monitor dashboard for network fails if the user doesnt have perms

In error case of VN get, return correct format of structure in stead of
empty array.

Change-Id: Ib614a3718825350d7b8c3da2f7ffcd2affe3ddc5
Closes-Bug: #1735018

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.