diff options
| author | chrislu <chris.lu@gmail.com> | 2025-07-18 22:16:15 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-07-18 22:16:15 -0700 |
| commit | 851011a32b31b946547e96121710b923eb0e4564 (patch) | |
| tree | 88c3224431eebd7801aa4119c8d129ec6c79dbe9 /weed/s3api/s3api_object_handlers_put.go | |
| parent | a9a9c732b9b6b791f16b3cf74934b44a4b0573d8 (diff) | |
| download | seaweedfs-851011a32b31b946547e96121710b923eb0e4564.tar.xz seaweedfs-851011a32b31b946547e96121710b923eb0e4564.zip | |
address comments
Diffstat (limited to 'weed/s3api/s3api_object_handlers_put.go')
| -rw-r--r-- | weed/s3api/s3api_object_handlers_put.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/weed/s3api/s3api_object_handlers_put.go b/weed/s3api/s3api_object_handlers_put.go index 07ddebf43..011a039d3 100644 --- a/weed/s3api/s3api_object_handlers_put.go +++ b/weed/s3api/s3api_object_handlers_put.go @@ -604,10 +604,6 @@ func mapValidationErrorToS3Error(err error) s3err.ErrorCode { // For invalid retention period (e.g., Days <= 0), return InvalidRetentionPeriod // This matches the test expectations return s3err.ErrInvalidRetentionPeriod - case errors.Is(err, ErrInvalidRetentionMode): - // For invalid retention mode, return InvalidRequest - // This matches the test expectations - return s3err.ErrInvalidRequest case errors.Is(err, ErrComplianceModeActive): // For compliance mode retention violations, return AccessDenied // This matches the test expectations |
