Bug 2117738 - Plugin page error boundary message is not cleared after leaving page
Summary: Plugin page error boundary message is not cleared after leaving page
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.12
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.12.0
Assignee: Robb Hamilton
QA Contact: Yadan Pei
Olivia Payne
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-11 18:35 UTC by Samuel Padgett
Modified: 2023-01-17 19:55 UTC (History)
2 users (show)

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*])
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
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Plugin page with error (530.90 KB, image/png)
2022-08-11 18:35 UTC, Samuel Padgett
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 11955 0 None open Bug 2117738: reset ErrorBoundary state on location change 2022-08-15 22:08:23 UTC
Red Hat Product Errata RHSA-2022:7399 0 None None None 2023-01-17 19:55:07 UTC

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


Note You need to log in before you can comment on or make changes to this bug.