Bug 2117738

Summary: Plugin page error boundary message is not cleared after leaving page
Product: OpenShift Container Platform Reporter: Samuel Padgett <spadgett>
Component: Management ConsoleAssignee: Robb Hamilton <rhamilto>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact: Olivia Payne <opayne>
Priority: unspecified    
Version: 4.12CC: opayne, yapei
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
* Previously, when a plug-in page resulted in an error, the error did not reset when navigating away from the error page, and the error persisted after navigating to a page that was not the cause of the error. With this update, the error state is reset to its default when a user navigates to a new page, and the error no longer persists after navigating to a new page. (link: https://bugzilla.redhat.com/show_bug.cgi?id=2117738[*BZ#2117738*], link: https://issues.redhat.com/browse/OCPBUGS-523[*OCPBUGS-523*])
Story Points: ---
Clone Of: Environment:
Version: 4.12.0-0.nightly-2022-07-25-055755 Cluster ID: 0464bdc7-c959-4fb3-83f1-9957d9caab3d Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Safari/537.36
Last Closed: 2023-01-17 19:54:55 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
Plugin page with error none

Description Samuel Padgett 2022-08-11 18:35:47 UTC
Created attachment 1905034 [details]
Plugin page with error

Steps to reproduce:

1. Install a plugin with a page that has a runtime error. (Demo Plugin -> Dynamic Nav 1 currently has an error for me, but you can reproduce by editing any plugin and introducing an error.)
2. Observe the "something went wrong" error message.
3. Navigate to any other page (e.g. Workloads -> Pods)

Expected result:

The pods page is displayed.

Action result:

The error message persists. There is no way to clear except to refresh the browser.

Comment 3 Robb Hamilton 2022-08-24 12:07:37 UTC
Ya Dan, can you please verify?

Comment 4 Yadan Pei 2022-08-26 02:58:12 UTC
1. deploy and enable console-demo-plugin(whose Dynamic Nav page has error), we can see `Oh no! Something went wrong.` page when viewing Demo Plugin -> Dynamic Nav 1
2. then navigate to any other pages such as Workloads -< Pods page, Demo Plugin -> List Page, pages can be displayed

verified on 4.12.0-0.nightly-2022-08-24-053339

Comment 7 errata-xmlrpc 2023-01-17 19:54:55 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.12.0 bug fix and security 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-2022:7399