Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1796619

Summary: react warning updating state of an unmounted component due to rbac checks
Product: OpenShift Container Platform Reporter: cvogt
Component: Dev ConsoleAssignee: cvogt
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: low Docs Contact:
Priority: low    
Version: 4.4CC: aos-bugs, nmukherj, spathak
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-04 11:28:24 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:
Embargoed:
Attachments:
Description Flags
no react warning updating state of an unmounted component due to rbac checks-1
none
react warning updating state of an unmounted component due to rbac checks-2 none

Description cvogt 2020-01-30 19:20:46 UTC
Description of problem:
We should be using the `useSafetyFirst` hook for react state whenever there is asynchronous update to state.
When querying rbac rules, it's possible that the user loads a part of the UI that requests rbac checks and then navigates away before the rbac check completes. As a result we get warnings in the console

How reproducible:
Reproducible on a slower connection or with dev tools enabled to toggle the network. Navigate to a place in the UI (must be first visit) such as the topology and select a node to open the side bar. Upon loading of the sidebar, immediately navigate away and wait for the rbac network request to complete.

Comment 2 spathak@redhat.com 2020-03-06 23:31:26 UTC
Created attachment 1668228 [details]
no react warning updating state of an unmounted component due to rbac checks-1

Comment 3 spathak@redhat.com 2020-03-06 23:32:07 UTC
Created attachment 1668229 [details]
react warning updating state of an unmounted component due to rbac checks-2

Comment 4 spathak@redhat.com 2020-03-06 23:33:24 UTC
Verified on build : 4.4.0-0.ci-2020-03-06-174627
Chrome browser: 76.0.3809.132

Comment 6 errata-xmlrpc 2020-05-04 11:28:24 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, 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:0581