Bug 1986803

Summary: Details page doesn't catch errors which happen on a tab
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Dev ConsoleAssignee: Christoph Jerolimov <cjerolim>
Status: CLOSED ERRATA QA Contact: Debsmita Santra <dsantra>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.9CC: aos-bugs, dsantra, nmukherj
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:42:49 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:

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