seaweedfs icon indicating copy to clipboard operation
seaweedfs copied to clipboard

fix: s3 return BadDigest

Open kmlebedev opened this issue 1 year ago • 0 comments

What problem are we solving?

https://github.com/seaweedfs/seaweedfs/issues/6713

How are we solving the problem?

replace We encountered an internal error, please try again. to The Content-Md5 you specified did not match what we received

How is the PR tested?

localy before

aws --endpoint-url https://filer01.dev:8443 s3 cp /tmp/test.txt s3://test/test.txt --ca-bundle GolandProjects/seaweedfs/docker/compose/tls/SeaweedFS_CA.crt --checksum-algorithm CRC64NVME
upload failed: ../../tmp/test.txt to s3://test/test.txt An error occurred (InternalError) when calling the PutObject operation (reached max retries: 2): We encountered an internal error, please try again.

after

aws --endpoint-url https://filer01.dev:8443 s3 cp /tmp/test.txt s3://test/test.txt --ca-bundle /Users/whitefox/GolandProjects/seaweedfs/docker/compose/tls/SeaweedFS_CA.crt --checksum-algorithm CRC64NVME
upload failed: ../../tmp/test.txt to s3://test/test.txt An error occurred (InvalidDigest) when calling the PutObject operation: The Content-Md5 you specified is not valid.

Checks

  • [ ] I have added unit tests if possible.
  • [ ] I will add related wiki document changes and link to this PR after merging.

kmlebedev avatar Apr 16 '25 12:04 kmlebedev