Describe the bug
When uploading a local file to my s3 storage, some kind of checksum seems to be added directory inside the contents of my file:
326d # added by boto3
# my file contents ...
0 # added by boto3
x-amz-checksum-crc32:6da4RA== # added by boto3
Regression Issue
It does not happen with boto3==1.35.41
Expected Behavior
The uploaded file contents should not be modified.
Current Behavior
The uploaded file contents are modified.
Reproduction Steps
Create a dummy file locally:
echo toto > /tmp/toto.txt
Install boto3:
pip install boto3==1.36.16
Init s3 client and upload file:
import boto3
s3_session = boto3.session.Session()
client = s3_session.client(
service_name="s3",
aws_access_key_id="my-access",
aws_secret_access_key="my-secret",
endpoint_url="https://my-url",
region_name="my-region",
)
client.upload_file("/tmp/toto.txt", "my-bucket", "my-folder/toto.txt")
# Now read uploaded file contents:
print(client.get_object(Bucket="my-bucket", Key="my-folder/toto.txt")["Body"].read())
# returns: b'5\r\ntoto\n\r\n0\r\nx-amz-checksum-crc32:+H0IvQ==\r\n\r\n'
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.36.16
Environment details (OS name and version, etc.)
Linux Ubuntu 22
Describe the bug
When uploading a local file to my s3 storage, some kind of checksum seems to be added directory inside the contents of my file:
Regression Issue
It does not happen with
boto3==1.35.41Expected Behavior
The uploaded file contents should not be modified.
Current Behavior
The uploaded file contents are modified.
Reproduction Steps
Create a dummy file locally:
Install boto3:
Init s3 client and upload file:
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.36.16
Environment details (OS name and version, etc.)
Linux Ubuntu 22