Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s3cmd info shows ETag as MD5 sum #1336

Open
CalmVibes opened this issue Aug 4, 2023 · 1 comment
Open

s3cmd info shows ETag as MD5 sum #1336

CalmVibes opened this issue Aug 4, 2023 · 1 comment

Comments

@CalmVibes
Copy link

s3cmd info shows ETag as MD5 sum. But "The entity tag may or may not be an MD5 digest of the object data." https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html#API_CompleteMultipartUpload_ResponseSyntax

So the MD5 sum in the output of s3cmd may not be the MD5 sum of the file. It's misleading.

image

@lavigne958
Copy link
Contributor

yes AWS S3 documentation must be open about the value stored in the ETag.

So far on regular object it is an opaque value but in fact it is the md5 sum of the object data.

They need to stay open as some upload will store some different values. example: when putting an object and requesting AWS S3 to encrypt your object, the ETag is NOT the md5 sum of the object data. for this kind of scenarios they must stay open in the actual value used here in the documentation.

I still agree with you S3cmd should rename that display to ETag to be consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants