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

2016-07-01 Thread Antonio Calanducci
Hi, at the end I figured the problem out. It was the very same bug of the python-swiftclient, missing encoding for utf-8. I encoded the hmac_body with utf8 (but not URI encoding) and the tempURL is now valid! Thank you for the support! Best Antonio On Wed, Jun 29, 2016 at 9:40 PM, Antonio

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

2016-06-29 Thread Antonio Calanducci
Hi Tim, thank you. I have modified my local python swift client according the diff on your patch and now I can generate tempURL on python2.7 too. I have noticed a bizzarre thing now. Trying to use CURL to download the generated tempURL, using a utf8 filename ("Monè.txt"), the download works fine

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

2016-06-29 Thread Tim Burke
Hi Antonio, That sounds like a bug! Looks like we decode the temporal key coming in from the terminal, but don't properly encode it when getting the HMAC. This generates the UnicodeEncodeError on python 2.7, and I've submitted https://review.openstack.org/#/c/335615/ to address this. I'm not