Bug 1915995 - "Edit RoleBinding Subject" action under RoleBinding list page kebab actions causes unhandled exception
Summary: "Edit RoleBinding Subject" action under RoleBinding list page kebab actions c...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.7.0
Assignee: Cyril
QA Contact: Yanping Zhang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-13 22:11 UTC by Jon Jackson
Modified: 2021-02-24 15:53 UTC (History)
3 users (show)

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
Clone Of:
Environment:
Last Closed: 2021-02-24 15:53:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 7846 0 None closed Bug 1915995: - "Edit RoleBinding Subject" action under RoleBinding list page kebab actions causes unhandled exception 2021-02-03 18:44:43 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:53:39 UTC

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


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