Bug 2028292

Summary: Objects are not valid as a React child
Product: OpenShift Container Platform Reporter: ralpert
Component: Management ConsoleAssignee: Yadan Pei <yapei>
Status: CLOSED DEFERRED QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.7   
Target Milestone: ---   
Target Release: 4.9.z   
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: 2023-03-09 01:09:36 UTC Type: ---
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: 2006067, 2053703    
Bug Blocks:    

Description ralpert 2021-12-01 22:23:13 UTC
This bug was initially created as a copy of Bug #2006067

I am copying this bug because: 
I am doing a manual backport to 4.9. The automated backport failed due to JSON file conflicts.

Description of problem:

Users being shown React error when trying to perform action in OpenShift UI


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

4.7.22

How reproducible:

100%


Steps to Reproduce:
1. Create a role without the ability to "update" InstallPlans, but with the other verbs like get and patch.
2. Try to approve an installplan in the UI

Actual results:

Objects are not valid as a React child (found: Error: installplans.operators.coreos.com "install-sgxdf" is forbidden: User "w77378" cannot update resource "installplans" in API group "operators.coreos.com" in the namespace "developer-monitoring"). If you meant to render a collection of children, use an array instead.


Expected results:

OpenShift UI handles error and displays message in the UI.


Additional info:

Comment 5 Shiftzilla 2023-03-09 01:09:36 UTC
OpenShift has moved to Jira for its defect tracking! This bug can now be found in the OCPBUGS project in Jira.

https://issues.redhat.com/browse/OCPBUGS-9039