container list cannot handle correctly if container secrets have name contain non-ascii characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-barbicanclient |
New
|
Undecided
|
ting.wang |
Bug Description
if name of container secret contains non-ascii characters, like
MariaDB [barbican]> select * from container_secret;
+------
| id | created_at | updated_at | deleted_at | deleted | status | name | container_id | secret_id |
+------
| 846d6079-
你好 == \u4f60\u597d
then run:
barbican secret container list --debug
'ascii' codec can't encode characters in position 1747-1748: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/
result = cmd.run(
File "/usr/lib/
self.
File "/usr/lib/
parsed_args,
File "/usr/lib/
stdout.
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1747-1748: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/opt/stack/
return barbican_
File "/opt/stack/
return super(Barbican, self).run(argv)
File "/usr/lib/
result = self.run_
File "/usr/lib/
result = cmd.run(
File "/usr/lib/
self.
File "/usr/lib/
parsed_args,
File "/usr/lib/
stdout.
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1747-1748: ordinal not in range(128)
but curl -X GET can handle correctly:
curl -X GET http://
{"status": "ACTIVE", "updated": "2016-01-
So, we'd better fix it in barbicanclient
Changed in python-barbicanclient: | |
assignee: | nobody → tingwang (bx-wang) |