Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Adds bucket object lock status check in GetObjectLegalHold and G… #889

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

0x180
Copy link
Contributor

@0x180 0x180 commented Oct 14, 2024

Fixes #883

Adds bucket object lock status check in GetObjectLegalHold and GetObjectRetention actions. It returns ErrInvalidBucketObjectLockConfiguration, if attempting to get object legal hold/retention when object lock isn't enabled for the bucket.

@benmcclelland benmcclelland merged commit 366186e into main Oct 15, 2024
20 checks passed
@benmcclelland benmcclelland deleted the fix/legal-hold-error-type branch October 15, 2024 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] - GetObjectLegalHold without object lock enabled should return InvalidRequest
2 participants