Bug 1810937 - When viewing in the web console, Chinese in configmap attach volume to pod turn into messy code
Summary: When viewing in the web console, Chinese in configmap attach volume to pod tu...
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.5.0
Assignee: Yadan Pei
QA Contact: Yadan Pei
Depends On:
Blocks: 1821285
TreeView+ depends on / blocked
Reported: 2020-03-06 09:19 UTC by Catherine_H
Modified: 2023-09-07 22:14 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1821285 (view as bug list)
Last Closed: 2020-07-13 17:18:46 UTC
Target Upstream Version:

Attachments (Terms of Use)
Workloads ConfigMaps Show Correctly (119.57 KB, image/png)
2020-03-13 05:43 UTC, Yadan Pei
no flags Details
Pod Terminal show messy code (155.87 KB, image/png)
2020-03-13 05:44 UTC, Yadan Pei
no flags Details
Pod Terminal Show Correct Chinese Chars (157.68 KB, image/png)
2020-04-07 09:59 UTC, Yadan Pei
no flags Details

System ID Private Priority Status Summary Last Updated
Github openshift console pull 4915 0 None closed Bug 1810937: Correctly handle Unicode characters in pod terminal 2020-07-06 00:58:34 UTC
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:19:10 UTC

Comment 2 Yadan Pei 2020-03-13 05:43:22 UTC
Created attachment 1669840 [details]
Workloads ConfigMaps Show Correctly

Comment 3 Yadan Pei 2020-03-13 05:44:18 UTC
Created attachment 1669841 [details]
Pod Terminal show messy code

1. Create configmap with Chinese character from CLI or web console(console supports creating configmap with value as Chinese character)
# cat chinese-configmap.yaml 
apiVersion: v1
kind: ConfigMap
  name: special-config
  special.how: very
  special.type: 信息技术部

# oc create -f chinese-configmap.yaml

2. View configmap details on console, Chinese character is displayed well

3. Config DC to use the ConfigMap
# cat mydc.yaml
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
  name: example
  namespace: yapei1-1
    app: hello-openshift
  replicas: 1
        app: hello-openshift
        - name: hello-openshift
          image: yapei/hello-openshift
            - containerPort: 8080 
# oc create -f dc.yaml
# oc set volumes dc/example --add=true --name=mytestvol --type=configmap --configmap-name=special-config  --mount-path=/var/datatest

4. wait for new pods is created and running, visit pod Terminal on console
sh-4.2 $ cat special.type    // Chinese character is not shown correctly, it was in messy code

Comment 7 Yadan Pei 2020-04-07 09:59:33 UTC
Created attachment 1676871 [details]
Pod Terminal Show Correct Chinese Chars

Follow the steps in comment 3, now Chinese chars can be shown correctly

Verified on     4.5.0-0.nightly-2020-04-06-184201

Comment 9 errata-xmlrpc 2020-07-13 17:18:46 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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


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