What steps will reproduce the problem?
1. Connect to S3, get bucket, get key (as k)
2. k.copy( bucketName, targetKeyName, encrypt_key=True )
What is the expected output? What do you see instead?
- Expected behavior is Amazon Console reports the targetKeyName is encrypted
(AES256). Amazon Console reports the targetKeyName is NOT encrypted.
What version of the product are you using? On what operating system?
boto 2.1.1, win32
Please provide any additional information below.
I examined the output with WireShark to determine that the correct header was
not sent to Amazon (x-amz-server-side-encryption).
A closer look at boto/s3/bucket.py under copy_key, reveals the line that sets
the header should be moved after headers assignment.
-------------------------
if encrypt_key:
headers[provider.server_side_encryption_header] = 'AES256'
Original issue reported on code.google.com by adampetr...@gmail.com on 10 Nov 2011 at 6:15
Original issue reported on code.google.com by
adampetr...@gmail.com
on 10 Nov 2011 at 6:15