diff options
| author | chrislu <chris.lu@gmail.com> | 2025-07-18 16:38:24 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-07-18 16:38:24 -0700 |
| commit | f419271299fffd3fecd95e67caedd23039d6ad3c (patch) | |
| tree | ce7059f4b73404a97f89f941321bb79e57345e4f /weed/s3api/s3api_object_handlers_put.go | |
| parent | a0ab227e078987bf81551ff80586324fba6c7083 (diff) | |
| download | seaweedfs-f419271299fffd3fecd95e67caedd23039d6ad3c.tar.xz seaweedfs-f419271299fffd3fecd95e67caedd23039d6ad3c.zip | |
pass tests
Diffstat (limited to 'weed/s3api/s3api_object_handlers_put.go')
| -rw-r--r-- | weed/s3api/s3api_object_handlers_put.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/s3api/s3api_object_handlers_put.go b/weed/s3api/s3api_object_handlers_put.go index 99ad5d9ed..b534f9662 100644 --- a/weed/s3api/s3api_object_handlers_put.go +++ b/weed/s3api/s3api_object_handlers_put.go @@ -596,6 +596,10 @@ func mapValidationErrorToS3Error(err error) s3err.ErrorCode { // For governance bypass on non-versioned bucket, return InvalidRequest // This matches the test expectations return s3err.ErrInvalidRequest + case errors.Is(err, ErrMalformedXML): + // For malformed XML in request body, return MalformedXML + // This matches the test expectations for invalid retention mode and legal hold status + return s3err.ErrMalformedXML // Validation error constants case errors.Is(err, ErrObjectLockConfigurationMissingEnabled): return s3err.ErrMalformedXML |
