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

PutObjectLockConfiguration years and days validation #557

Closed
jonaustin09 opened this issue May 13, 2024 · 0 comments · Fixed by #573
Closed

PutObjectLockConfiguration years and days validation #557

jonaustin09 opened this issue May 13, 2024 · 0 comments · Fixed by #573
Labels
bug Something isn't working

Comments

@jonaustin09
Copy link
Contributor

Describe the bug
When calling PutObjectLockConfiguration action with invalid days or years it should return InvalidRetentionPeriod error.
days, years should be positive integers

To Reproduce

aws s3api put-object-lock-configuration \
    --bucket my-bucket-with-object-lock \
    --object-lock-configuration '{ "ObjectLockEnabled": "Enabled", "Rule": { "DefaultRetention": { "Mode": "COMPLIANCE", "Days": -50 }}}'

Expected behavior
The action should return InvalidRetentionPeriod error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant