Bug 1921258

Summary: User Preferences: Active perspective and project change in the current window when selected in a different window
Product: OpenShift Container Platform Reporter: Samuel Padgett <spadgett>
Component: Dev ConsoleAssignee: cvogt
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: high Docs Contact:
Priority: high    
Version: 4.7CC: aos-bugs, nmukherj, pmuller, spathak
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Version: 4.7.0-0.nightly-2021-01-27-072811 Cluster ID: 8d16604e-b600-4b34-90d4-c6831701fbbf Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:84.0) Gecko/20100101 Firefox/84.0
Last Closed: 2021-02-24 15:56:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Video of the problem
none
User Preferences: Active perspective and project remains same in the current window when selected in a different window none

Description Samuel Padgett 2021-01-27 19:40:24 UTC
I'm logged into to kubeadmin. Another person is logged in as kubeadmin in a different browser. When the other user changes the active perspective or project, the change is happening on my screen. The screen flashes and scrolls to the top when it happens. This makes console almost unusable.

While this might be an edge case in a shared development cluster, there are a few scenarios I could see where it can commonly happen:

1. Multiple users share the kubeadmin ID (or another cluster-admin account)
2. A single user has multiple tabs open where they want to work in different perspectives or projects

We should make sure that the active perspective and project from user preferences are only evaluated on console load.

We might also consider storing preferences for kubeadmin in localStorage since it's likely not uncommon for it to be shared account.

Comment 2 Samuel Padgett 2021-01-27 20:34:17 UTC
Created attachment 1751388 [details]
Video of the problem

I'm attaching a video of the problem. It's possible this only happens when impersonation is enabled. I was logged in as kubeadmin, but impersonating user `test` in one window.

Comment 4 spathak@redhat.com 2021-02-02 21:16:17 UTC
Created attachment 1754520 [details]
User Preferences: Active perspective and project remains same in the current window when selected in a different window

Comment 5 spathak@redhat.com 2021-02-02 21:19:07 UTC
Verified on build version: 4.7.0-0.nightly-2021-02-01-180932
Browser version: Chrome 84, Firefox 80

Comment 8 errata-xmlrpc 2021-02-24 15:56:44 UTC
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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), 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/RHSA-2020:5633