aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/s3err/s3api_errors.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2025-07-07 02:18:57 +0500
committerGitHub <noreply@github.com>2025-07-06 14:18:57 -0700
commitfd4154cfed0727bac3015587087ffda6fe2cddde (patch)
treec48e18626161acec3afa977aec4ca73839f10f9f /weed/s3api/s3err/s3api_errors.go
parent798f797158d857600824693df46310fb074fb7b1 (diff)
downloadseaweedfs-fd4154cfed0727bac3015587087ffda6fe2cddde.tar.xz
seaweedfs-fd4154cfed0727bac3015587087ffda6fe2cddde.zip
fix: s3 return BadDigest (#6714)
* fix: s3 return BadDigest * adjust error message checking --------- Co-authored-by: chrislu <chris.lu@gmail.com>
Diffstat (limited to 'weed/s3api/s3err/s3api_errors.go')
-rw-r--r--weed/s3api/s3err/s3api_errors.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/weed/s3api/s3err/s3api_errors.go b/weed/s3api/s3err/s3api_errors.go
index f41c3620c..bcb0a26a8 100644
--- a/weed/s3api/s3err/s3api_errors.go
+++ b/weed/s3api/s3err/s3api_errors.go
@@ -112,6 +112,13 @@ const (
ErrNoSuchTagSet
)
+// Error message constants for checksum validation
+const (
+ ErrMsgPayloadChecksumMismatch = "payload checksum does not match"
+ ErrMsgChunkSignatureMismatch = "chunk signature does not match"
+ ErrMsgChecksumAlgorithmMismatch = "checksum algorithm mismatch"
+)
+
// error code to APIError structure, these fields carry respective
// descriptions for all the error responses.
var errorCodeResponse = map[ErrorCode]APIError{