Browse Source
Update weed/s3api/s3api_object_handlers_put.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/6996/head
Chris Lu
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
weed/s3api/s3api_object_handlers_put.go
|
|
@ -416,7 +416,7 @@ func (s3a *S3ApiServer) extractObjectLockMetadataFromRequest(r *http.Request, en |
|
|
if explicitMode == "" && explicitRetainUntilDate == "" { |
|
|
if explicitMode == "" && explicitRetainUntilDate == "" { |
|
|
bucket, _ := s3_constants.GetBucketAndObject(r) |
|
|
bucket, _ := s3_constants.GetBucketAndObject(r) |
|
|
if err := s3a.applyBucketDefaultRetention(bucket, entry); err != nil { |
|
|
if err := s3a.applyBucketDefaultRetention(bucket, entry); err != nil { |
|
|
glog.V(2).Infof("extractObjectLockMetadataFromRequest: could not apply bucket default retention for %s: %v", bucket, err) |
|
|
|
|
|
|
|
|
glog.V(2).Infof("extractObjectLockMetadataFromRequest: skipping bucket default retention for %s: %v", bucket, err) |
|
|
// Don't fail the upload if default retention can't be applied - this matches AWS behavior
|
|
|
// Don't fail the upload if default retention can't be applied - this matches AWS behavior
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|