containers and objects with non-ascii characters fails

Bug #1503508 reported by Lin Hua Cheng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
High
Lin Hua Cheng

Bug Description

Using non-ascii characters returns an error.

Steps to reproduce:
(openstack) container create "您好"

Output:
'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128)

Expected output:
No error

Revision history for this message
Steve Martinelli (stevemar) wrote :

our support for this in general is pretty poor across all openstackclient commands

Changed in python-openstackclient:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :

Using "user create <non-ascii name>" works fine though, the issue probably case to case.

Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote : Re: non-ascii characters doesn't work for swift commands

the bug is local to swift commands, where the container and object name are used in the URL path.

They just have to be escaped prior to use as URL

summary: - non-ascii characters doesn't work
+ non-ascii characters doesn't work for swift commands
Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :
Changed in python-openstackclient:
assignee: nobody → Lin Hua Cheng (lin-hua-cheng)
summary: - non-ascii characters doesn't work for swift commands
+ containers and objects with non-ascii characters fails
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/231847
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=985b2cdd2c07442f4446e6164117cb8011269c8c
Submitter: Jenkins
Branch: master

commit 985b2cdd2c07442f4446e6164117cb8011269c8c
Author: lin-hua-cheng <email address hidden>
Date: Tue Oct 6 23:26:08 2015 -0700

    Fix non-ascii issue with object commands

    Escape the container and object name whenever it is used
    as URL.

    Change-Id: I2343c1e67843ab53773b3fca6e258dc329cd9573
    Closes-Bug: #1503508

Changed in python-openstackclient:
status: Confirmed → Fix Committed
Dean Troyer (dtroyer)
Changed in python-openstackclient:
milestone: none → next
Revision history for this message
Steve Martinelli (stevemar) wrote :

released with 1.8.0

Changed in python-openstackclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.