Bug 1869127 - Capitalized group name created by web console is not consistent with oc creation
Summary: Capitalized group name created by web console is not consistent with oc creation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.6
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.6.0
Assignee: Samuel Padgett
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-17 02:40 UTC by XiaochuanWang
Modified: 2020-10-27 16:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 16:28:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Verification screenshot (20.67 KB, image/png)
2020-08-21 03:00 UTC, XiaochuanWang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 6337 0 None open Bug 1869127: Don't lowercase names in `k8sCreate` 2020-08-17 14:03:41 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 16:28:52 UTC

Description XiaochuanWang 2020-08-17 02:40:06 UTC
Description of problem:
Create a user group named with capitalized characters, it will be saved to lowercase which is not consistent with oc 

Version-Release number of selected component (if applicable):
4.6.0-0.nightly-2020-08-16-072105

How reproducible:
Always

Steps to Reproduce:
1. Clusteradmin login web console and browse to group page.
2. Create a group by console named with some capitalized characters, such as "CapitalizedGroupName"
3. Check the group name after hit Create button.
 
Actual results:
All letters are saved as small case.

Expected results:
Should be consistent as oc, which the created name is same as user input.

Additional info:

Comment 1 Jakub Hadvig 2020-08-17 08:08:55 UTC
When creating a Group via console, using the YAML editor, the console is passing a new object with name cased as is typed.
The response from the apiserver is lowercased though, so this is a known issue. Don't thing there is anything that could be done.

Comment 2 Samuel Padgett 2020-08-17 13:56:39 UTC
Hi, Jakub. Console is actually lowercasing the name. We should remove the code that does that from `k8sCreate`.

https://github.com/spadgett/console/blob/99788a241c70f0f7896fe15aca6f8fd9e9ed68e1/frontend/public/module/k8s/resource.js#L70

Comment 6 XiaochuanWang 2020-08-21 03:00:19 UTC
Created attachment 1712110 [details]
Verification screenshot

Comment 7 XiaochuanWang 2020-08-21 03:00:54 UTC
Attached the screenshot, this is fixed.
Verified on 4.6.0-0.nightly-2020-08-20-174655

Comment 9 errata-xmlrpc 2020-10-27 16:28:34 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


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