Description of problem: Cluster admin user login and go to User menu, choose a normal user to impersonate, the page redirect to Dashboard which the user has no right to view. Version-Release number of selected component (if applicable): 4.3.0-0.nightly-2019-11-04-210904 How reproducible: Always Steps to Reproduce: 1. Cluster admin user login and go to User menu 2. Make sure there is at least one normal user, choose the user to impersonate, check the browser. Actual results: 2. Page redirect to Dashboard which normal user has no right to view. (Also "Error loading events" show up in Activity on the page) Expected results: 2. Should redirect to Projects list view as the normal user just logged in. Additional info:
When impersonation starts, we re-run flag detection. The problem is the `flagPending` check returns false because there was a previous value for kubeadmin and `getLandingPage` returns before the new `CAN_LIST_NS` is set.
kubeadmin can impersonate normal users now, no error messages output. 4.3.0-0.nightly-2019-11-10-211307
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0062