noobaa-core icon indicating copy to clipboard operation
noobaa-core copied to clipboard

NSFS | Lifecycle | NooBaa accepts empty Expiration clause

Open nhaustein opened this issue 4 months ago • 1 comments

Environment info

  • NooBaa Version: noobaa-core-5.17.0-20241007.el9.x86_64.rpm
  • Platform: RHEL 9.4 on x84

Actual behavior

  1. NooBaa accepts empty Expiration, NonCurrentVersion and AbortMultipartUpload clauses like this: { "ID": "no-day", "Status": "Enabled", "Filter": { "Prefix": "file" }, "Expiration": { } }

Expected behavior

  1. NooBaa to enforce a valid parameter for Expiration, NonCurrentVersion and AbortMultipartUpload.

Steps to reproduce

  1. PUT the above lifecycle configuration on a bucket and validate it using GET lifecycle configuration

More information - Screenshots / Logs / Other output

@dannyzaken and @guymguym informed about it.

nhaustein avatar Oct 14 '24 17:10 nhaustein