boto/boto — Issue #422: buckey.py has a typo in copy_key function
Author: garnaat
Created: 2011-12-02 14:20:53+00:00
State: open
Labels: Bug, S3

I am using boto 2.1.1, in bucket.py line 560 "version_id" should be
"versionId"

559 if src_version_id:
560 src += '?version_id=%s' % src_version_id

boto.exception.S3ResponseError: S3ResponseError: 400 Bad Request
InvalidArgumentUnsupported copy source
parameter.tochen-bucket2/
secondBeforeVersioningKey?version_id=ezjBTEEUoadHBqmsoG8HQ9ECxljsQvvKx-amz-copy-sourceD55F497C2D1981CEmVT0jkv
+5bYv+oehzkE89fAfLY5h27K7xxupZO7dXZtcKw29FewizGKNHy/tbtI/

after I change line 560 to the following

560 src += '?versionId=%s' % src_version_id

things work fine.