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: two rules with the same ID are accepted #8550

Open nhaustein opened 1 day ago

nhaustein commented 1 day ago

Environment info

Actual behavior

  1. Two lifecycle rules with the same ID are accepted. Example of accepted lifecycle rule: { "Rules": [ { "ID": "ID1", "Status": "Enabled", "Filter": { "Prefix": "small" }, "Expiration": { "Days": 20 } }, { "ID": "ID1", "Status": "Enabled", "Filter": { "Prefix": "large" }, "Expiration": { "Days": 10 } } ] }

Expected behavior

  1. Rules with the same ID should be rejected.

Steps to reproduce

  1. Use the example above to PUT and get lifecycle configuration

More information - Screenshots / Logs / Other output