You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// A SHA256 checksum header is included in the request, to verify that the payload
63
+
// has been received intact.
64
+
// Read [Checking object integrity for data uploads in Amazon S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity-upload.html),
65
+
// to learn more.
66
+
//
67
+
// TODO(wallrj): There is a bug in the AWS backend:
68
+
// [S3 Presigned PutObjectCommand URLs ignore Sha256 Hash when uploading](https://github.com/aws/aws-sdk/issues/480)
69
+
// ...which means that the `x-amz-checksum-sha256` request header is optional.
70
+
// If you omit that header, it is possible to PUT any data.
71
+
// There is a work around listed in that issue which we have shared with the
// An example of a real checksum mismatch error from the AWS API when the
122
+
// request body does not match the checksum in the request header.
123
+
constamzExampleChecksumError=`<Error><Code>BadDigest</Code><Message>The SHA256 you specified did not match the calculated checksum.</Message><RequestId>GBDMP09BEZ929YBK</RequestId><HostId>sFTQb9JQpfJY/t+Ctn0anBmp4lKzEGES8ttmfAmFInuJIhvaV/U+20vYaGbdtlEnExZQRV/5xo6RQqq3xItM+px/Q2AEiv1G</HostId></Error>`
0 commit comments