noobaa / noobaa-core

High-performance S3 application gateway to any backend - file / s3-compatible / multi-clouds / caching / replication ...
https://www.noobaa.io
Apache License 2.0
273 stars 80 forks source link

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

Open nhaustein opened 1 day ago

nhaustein commented 1 day ago

Environment info

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