Bug 1845624

Summary: cannot see group yaml in the console when group has special characters.
Product: OpenShift Container Platform Reporter: German Parente <gparente>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4CC: aos-bugs, jokerman, spadgett, yapei
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Fixed an issue where resource names with special characters like `(` and `)` could prevent resource details from being displayed in OpenShift console.
Story Points: ---
Clone Of:
: 1867050 (view as bug list) Environment:
Last Closed: 2020-10-27 16:06:02 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: 1867050    
Attachments:
Description Flags
Group with special character - Details page
none
Group with special character - YAML page
none
Group with special character - RoleBinding page none

Description German Parente 2020-06-09 16:36:28 UTC
Description of problem:

after creating a group like this:

oc adm groups new '_UO.Sistemas_(50000374)'

I can see it with the client:

oc get group '_UO.Sistemas_(50000374)'
oc get group '_UO.Sistemas_(50000374)' -o yaml

but in the console, I cannot see anything. No details neither yaml file.

Comment 1 Samuel Padgett 2020-06-09 18:11:21 UTC
Parenthesis have a special meaning in react-router, which is causing the problem:

https://github.com/ReactTraining/react-router/blob/v3/docs/guides/RouteMatching.md#path-syntax

> () – Wraps a portion of the URL that is optional. You may escape parentheses if you want to use them in a url using a backslash \

Comment 3 Samuel Padgett 2020-06-26 14:19:18 UTC
react-router-dom v6 will allow relative links, which would fix this problem:

https://github.com/ReactTraining/react-router/issues/5127
https://github.com/ReactTraining/react-router/blob/4a55331e73feb2f36e7d322bab7e45706e86dede/docs/guides/migrating-5-to-6.md#relative-routes-and-links

Unfortunately, it's still in beta and requires migration from v5.

Comment 7 Yadan Pei 2020-06-29 07:40:25 UTC
PR was not included in     4.6.0-0.nightly-2020-06-26-035408, will check on newer build

Comment 8 Yadan Pei 2020-07-02 03:13:50 UTC
1. create a group with special character '(' and ')'
oc adm groups new '_UO.Sistemas_(50000374)'
2. check group info on console at User Management -> Groups, Details, YAML and RoleBinding page are shown with correct info


Verified on 4.6.0-0.nightly-2020-06-30-020342

Comment 9 Yadan Pei 2020-07-02 03:16:09 UTC
Created attachment 1699589 [details]
Group with special character - Details page

Comment 10 Yadan Pei 2020-07-02 03:17:15 UTC
Created attachment 1699590 [details]
Group with special character - YAML page

Comment 11 Yadan Pei 2020-07-02 03:17:45 UTC
Created attachment 1699591 [details]
Group with special character - RoleBinding page

Comment 13 errata-xmlrpc 2020-10-27 16:06:02 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