aws/aws-sdk-java — pull request #299 by usultis (2014-11-04 13:23:00+00:00)
Title: fixing TransferManager download of versioned object

When downloading, TransferManager first gets content length by getting object metadata.
Still for versioned objects - when creating get-metadata request TransferManager fails to copy version-id of the "get-object request" .

This results in nasty consequences:

If the object has a delete marker as the latest version -
download of previous versions of that object will fail (404 NOT FOUND)

For other cases where we download previous object versions:
Since we get the content length of the latest object, downloading previous versions will lead to corrupted/truncated downloads.