Bug 1986803 - Details page doesn't catch errors which happen on a tab
Summary: Details page doesn't catch errors which happen on a tab
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.9
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.9.0
Assignee: Christoph Jerolimov
QA Contact: Debsmita Santra
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-28 11:17 UTC by Christoph Jerolimov
Modified: 2021-10-18 17:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-18 17:42:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 9659 0 None open Bug 1986803: Add error boundary around each horizontal tab route (used in DetailsPage) 2021-07-28 11:25:05 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:43:06 UTC

Description Christoph Jerolimov 2021-07-28 11:17:44 UTC
Description of problem:
Clone of https://issues.redhat.com/browse/ODC-6204

When an error happen on a details page which shows multiple tabs. The complete page catches the error and doesn't show the tabs anymore.

This doesn't allow the user to check other data or, if available, the YAML tab.

Version-Release number of selected component (if applicable):
4.9.0-0.nightly-2021-07-25-125326

How reproducible:
Always

Steps to Reproduce:
Produce a crash on a single tab of the DetailsPage component. For example on the environment page of a BuildConfig. Before https://bugzilla.redhat.com/show_bug.cgi?id=1986631 will be fixed this can reproduced with this steps. Otherwise you need to find another crash..

1. Open developer perspective
2. Navigate to Builds
3. Click on "Create BuildConfig" button
4. Just create the BuildConfig without additional changes
5. Switch to the "Environment" tab
6. Press "Add from ConfigMap or Secret" without selecting a ConfigMap or Secret and enter a name for this environment variable
7. Press "Save"

Actual results:
The complete page shows an error which fills the complete content area.

  TypeError
  Description:
  Cannot read property 'component' of undefined

  Component Trace:
  minified stack

  Stack Trace:
  TypeError: Cannot read property 'component' of undefined
  minfied stack

Expected results:
Without the fix of https://bugzilla.redhat.com/show_bug.cgi?id=1986631 this error should still appear, but the other tabs should be still shown and selectable.

The error could be shown just in the "Environment" tab.

Additional info:
None

Comment 1 Debsmita Santra 2021-08-05 11:19:39 UTC
verified on https://issues.redhat.com/browse/ODC-6204

Comment 4 errata-xmlrpc 2021-10-18 17:42:49 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.9.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-2021:3759


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