[openstack-dev] [swift] Support for unicode filename in tempurl middleware

Dr Antonio Calanducci antonio.calanducci at ct.infn.it
Wed Jun 29 17:06:56 UTC 2016


I hope this is the right mailing list to ask this question. In case it's not, please direct me to the right one and apologise. 

I have some files stored in a container the use german character (and in general non ascii character).
Using the swift REST APIs and python-swiftclient (3.0.0) download/upload command I have no problem to handle them.

But when I try to generate tempurl for some of them with python-swiftclient, I got errors if I use python 2.7. By the way, switching to python3 I can generate properly the tempurl, but the URL is actually not working generating a 401 error.

Looking at the github repo it seems there is utf8 support for the tempurl key, but I am not sure if you support unicode for path too. I am currently using swift 2.2.0 on the server.

I read in the docs that I should not encode the path while generating the tempurl, but only to actually retrieve from the generate url.

Could you confirm or not that filename with unicode chars are supported and if so in which version?

thanks a lot for the attention
All the best


Dr. Antonio Calanducci, PhD
INFN Catania 

Office:    +39 095 3785519
Mobile:  +39 349 6762534
Skype:   tcaland

antonio.calanducci at ct.infn.it <mailto:antonio.calanducci at ct.infn.it>
calanducci at unict.it <mailto:antonio.calanducci at ct.infn.it>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160629/b5475a3e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1771 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160629/b5475a3e/attachment.bin>

More information about the OpenStack-dev mailing list