Bug 1915995

Summary: "Edit RoleBinding Subject" action under RoleBinding list page kebab actions causes unhandled exception
Product: OpenShift Container Platform Reporter: Jon Jackson <jonjacks>
Component: Management ConsoleAssignee: Cyril <cajieh>
Status: CLOSED ERRATA QA Contact: Yanping Zhang <yanpzhan>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.7CC: aos-bugs, jokerman, yapei
Target Milestone: ---Keywords: UpcomingSprint
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Incomplete code Consequence: Unable to Edit RoleBinding Subject Fix: Yes Result: Edit RoleBinding Subject is working as expected
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:53:14 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 Jon Jackson 2021-01-13 22:11:31 UTC
Description of problem:
Selecting the "Edit RoleBinding Subject" action for a RoleBinding item on the list page causes the app to crash with an unhandled exception.

Version-Release number of selected component (if applicable):
4.7

How reproducible:
Always

Steps to Reproduce:
1. Navigate to User Management > Role Bindings
2. Click the kebab dropdown for and RoleBinding item
3. Click "Edit RoleBinding Subject"

Actual results:
A runtime exception is thrown and the app white-screens in production

Expected results:
User should be presented with a form to edit the RoleBinding


Additional info:

Console error + stack trace
Uncaught (in promise) TypeError: Cannot destructure property 'subjectKind' of 'this.props.fixed.subjectRef' as it is undefined.
    at new BaseEditRoleBinding (bindings.jsx:396)
    at constructClassInstance (react-dom.development.js:13308)
    at updateClassComponent (react-dom.development.js:16985)
    at beginWork$1 (react-dom.development.js:18505)
    at HTMLUnknownElement.callCallback (react-dom.development.js:347)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:397)
    at invokeGuardedCallback (react-dom.development.js:454)
    at beginWork$$1 (react-dom.development.js:23217)
    at performUnitOfWork (react-dom.development.js:22208)
    at workLoopSync (react-dom.development.js:22185)

Comment 2 Yanping Zhang 2021-02-04 11:59:01 UTC
Checked on ocp 4.7 cluster with payload 4.7.0-0.nightly-2021-02-03-165316.
1. Navigate to User Management > Role Bindings
2. Click the kebab dropdown for and RoleBinding item
3. Click "Edit RoleBinding Subject", edit page is shown correctly without error in dev console.
The bug is fixed.

Comment 5 errata-xmlrpc 2021-02-24 15:53:14 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.7.0 security, bug fix, and enhancement 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-2020:5633