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 for not accepting the past dates as expiration for bucket lifecycle rules #8633

Closed
wants to merge 3 commits into from

Conversation

achouhan09
Copy link
Member

@achouhan09 achouhan09 commented Dec 27, 2024

Explain the changes

  1. Added a fix for not accepting past dates as expiration for bucket lifecycle rules also will reject if expiration date is not in correct format.

Issues: Fixed #xxx / Gap #xxx

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

Testing Instructions:

  • Tests added

@achouhan09 achouhan09 requested review from liranmauda, shirady, naveenpaul1, a team and Neon-White and removed request for a team December 27, 2024 15:09
@achouhan09 achouhan09 requested a review from romayalon December 30, 2024 12:05
@achouhan09 achouhan09 changed the title NSFS | Fix for not accepting the past dates as expiration for bucket lifecycle rules Fix for not accepting the past dates as expiration for bucket lifecycle rules Dec 30, 2024
@romayalon
Copy link
Contributor

Hey @achouhan09

  1. Can you please link to the Issues section the bug you are fixing?
  2. Please add tests

@achouhan09
Copy link
Member Author

Hi @romayalon
Added issue link and tests. Thanks

src/test/lifecycle/common.js Outdated Show resolved Hide resolved
src/test/lifecycle/common.js Outdated Show resolved Hide resolved
src/test/lifecycle/common.js Outdated Show resolved Hide resolved
@achouhan09 achouhan09 requested a review from shirady January 6, 2025 12:41
@achouhan09
Copy link
Member Author

achouhan09 commented Jan 7, 2025

@shirady I am not getting any error here if I pass past/current expiration date in bucket lifecycle configuration. I think object expiration is handled differently here in aws.

cc @romayalon

@shirady
Copy link
Contributor

shirady commented Jan 7, 2025

@shirady I am not getting any error here if I pass past/current expiration date in bucket lifecycle configuration. I think object expiration is handled differently here in aws.

cc @romayalon

@achouhan09 you can try to use the --debug flag with AWS CLI, maybe it would give you more information.
Did you see in the documentation something about the expiration date?

@achouhan09
Copy link
Member Author

Closing the pull request as it is not a bug, for reference check aws documentation here . Thanks

@achouhan09 achouhan09 closed this Jan 7, 2025
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 this pull request may close these issues.

NSFS | S3 | Lifecycle: Expiration Date in the past gets accepted
3 participants