The failure appears to be due to the incomplete implementation of seek()
-- missing the optional 'whence' argument -- in python-s3transfer's
ReadFileChunk method.

The attached patch to python-s3transfer fixes it in my testing.  Before
submitting the patch to the Ubuntu and upstream, I'd like an additional
verification that it resolves the problem.  Here's a PPA for Xenial
which provides python-s3tranfer with the patch applied:

https://launchpad.net/~kamalmostafa/+archive/ubuntu/lp1696800

Please confirm that this PPA (installed along with the stock Ubuntu
awscli package) fixes the problem for you.


** Attachment added: "implement-seek-whence-param-for-zero-length-files"
   
https://bugs.launchpad.net/ubuntu/+source/awscli/+bug/1696800/+attachment/4893294/+files/implement-seek-whence-param-for-zero-length-files

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1696800

Title:
  S3 upload of empty files fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/awscli/+bug/1696800/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to