Bug 1856267

Summary: White screen when cancel Pipeline Create with open sidebar
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Dev ConsoleAssignee: Christoph Jerolimov <cjerolim>
Status: CLOSED ERRATA QA Contact: Gajanan More <gamore>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.6CC: aos-bugs, nmukherj
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: JavaScript exception because of an internal state handling. Consequence: White screen (or Ops screen was shown) when cancel the Pipeline Create page when the sidebar was open. Fix: Improve internal state handling. Result: No exception was thrown and the Pipeline list is shown as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 16:13:54 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:
Bug Depends On:    
Bug Blocks: 1856268    

Description Christoph Jerolimov 2020-07-13 08:48:32 UTC
Description of problem:
When creating a pipeline, open a sidebar and press cancel the Console "crashes" and shows just a white screen.

Version-Release number of selected component (if applicable):
4.6.0-0.ci-2020-07-06-063139

How reproducible:
Always

Steps to Reproduce:
1. Install OpenShift Pipelines operator (tested with 1.0.1)
2. Open the Developer perspective and select Pipeline from the navigation.
3. Select "Create Pipeline"
4. Select task "git-clone" from the task list
5. Click on task "git-clone" to open the config sidebar on the right side
6. Press cancel (on the bottom left) while the sidebar is open!

Actual results:
White screen with the following message in the browser log:

Uncaught TypeError: Cannot read property 'name' of undefined
    at TaskSidebar (:9000/static/pipeline-builder-page-909c555cb842a4083ed6.js:774)
    at renderWithHooks (vendors~main-da01bf789e9762cb7930.js:261216)
    at updateFunctionComponent (vendors~main-da01bf789e9762cb7930.js:263033)


Expected results:
That we route is switched back to the Pipeline list.

Additional info:

Comment 3 Abhishek K N 2020-07-17 11:21:50 UTC
Validated on following 4.6 build & it's working fine.

OpenShift Version: 4.6.0-0.ci-2020-07-10-095921

Kubernetes Version: v1.18.3

Comment 5 errata-xmlrpc 2020-10-27 16:13:54 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 (OpenShift Container Platform 4.6 GA Images), 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:4196