RGW : Setting Lifecycle policy on a bucket, for expiration day=0 results with an error

Solution In Progress - Updated -

Issue

  • If a lifecycle policy on a bucket is set along with configuration parameters Expiration Days or NoncurrentDays with the value of 0, it results in an error . For example :
# vim policy.xml
<LifecycleConfiguration>
  <Rule>
    <Prefix></Prefix>
    <Status>Enabled</Status>
    <Expiration>
      <Days>0</Days>
    </Expiration>
  </Rule>
</LifecycleConfiguration>

# s3cmd setlifecycle /tmp/policy.xml s3://test-bucket-lifecycle-policy
ERROR: S3 error: 400 (InvalidArgument)

Environment

Red Hat Ceph Storage 3.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In