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

NSFS | S3 | Lifecycle: Expiration Date in the past gets accepted #8551

Closed
nhaustein opened this issue Nov 21, 2024 · 3 comments
Closed

NSFS | S3 | Lifecycle: Expiration Date in the past gets accepted #8551

nhaustein opened this issue Nov 21, 2024 · 3 comments
Assignees
Labels

Comments

@nhaustein
Copy link

nhaustein commented Nov 21, 2024

Environment info

  • NooBaa Version: noobaa-core-5.17.1-20241104.el9.x86_64
  • Platform: RHEL 9.2 x86

Actual behavior

  1. The expiration date in the past is getting accepted, example of the lifecycle rule which gets accepted:

{
"Rules": [
{
"ID": "Expiration-date",
"Status": "Enabled",
"Filter": {
"Prefix": "small"
},
"Expiration": { "Date": "2024-01-01T00:00:00.000Z" }
}
]
}

Expected behavior

  1. If expiration date is in the past relative to current date the lifecycle rule should get rejected.

Steps to reproduce

  1. Please use the lifecycle rule above to recreate it.

More information - Screenshots / Logs / Other output

@achouhan09
Copy link
Member

Hi @nhaustein
I am able to put the past/current date as expiration using aws cli, check below:
Screenshot from 2025-01-07 18-05-18

Why do you think its a bug can you explain more about it. Thanks

@nhaustein
Copy link
Author

Hi @achouhan09, I thought it is a bug because the test suite we are using (COS) complained about this. I checked the AWS documentation and found that it is ok to provided a date in the past (https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html). With this finding, the issue can be closed.
Thanks and happy new year.

@achouhan09
Copy link
Member

Closing with the comment. Thanks

Happy new year

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants