Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Recursive upload with RSA with UTF8 files completes but download fails #29
Comments
flexray
commented
Apr 4, 2017
|
I've added below lines and that did the trick. Don't know if it breaks other things import sys |
|
@flexray What is your
|
flexray
commented
Apr 5, 2017
|
It is 100% replicable. Regenerated Blob and I used default Azure VM with Ubuntu 16.04 in North Europe Region. Locale: Traceback (most recent call last): |
|
I'm not sure why $ python --version
Python 2.7.12
$ export LC_ALL=POSIX LC_CTYPE=POSIX LANG=POSIX
$ python -c 'print u"\xdc"'
Traceback (most recent call last):
File "<string>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode character u'\xdc' in position 0: ordinal not in range(128)Setting $ PYTHONIOENCODING=utf-8 python -c 'print u"\xdc"'
ÜSetting the locale correctly and not specifying $ export LC_ALL=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LANG=en_US.UTF-8
$ python -c 'print u"\xdc"'
Ü
$ PYTHONIOENCODING=utf-8 python -c 'print u"\xdc"'
ÜSince you are on 16.04, you could try installing |
flexray
commented
Apr 6, 2017
•
|
Tried python3 and now i cannot pass the privatekey passphrase in commandline - that worked before. Traceback (most recent call last): |
|
Looks like a defect in the current code (the password needs to be encoded). Please revert back to your Python2 workaround for now. This will be properly addressed in the rewrite. |
flexray commentedApr 4, 2017
•
Edited 1 time
-
alfpark
Apr 4, 2017
Upload completes flawlessly
blobxfer stopablob container1 /etc --upload --rsapublickey ../public.pem --storageaccountkey blabla
Download fails:
blobxfer stopablob container1 etc1 --remoteresource . --download --rsaprivatekey ../private.pem --storageaccountkey blabla --rsakeypassphrase blabla