Bug #46702
openrgw:lc: lifecycle rule with more than one prefix in RGWPutLC::execute() should throw error
40%
Description
when I set lifecycle using ·s3cmd setlifecycle lc_xml s3://bucketname·, where lc_xml:
```
<LifecycleConfiguration>
<Rule>
<ID>Rule2</ID>
<Filter>
<And>
<Prefix>ppt</Prefix>
<Prefix>word</Prefix>
<Prefix>execl</Prefix>
</And>
</Filter>
<Status>Enabled</Status>
<Transition>
<Days>2</Days>
<StorageClass>GLACIER</StorageClass>
</Transition>
</Rule>
</LifecycleConfiguration>
```
it is success, but objets with prefox "word" and "execl" can not be transition to GLACIER, and I find the rule must be no more than one prefix in each filter: https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#intro-lifecycle-rules-filter
so I think it's resonable to throw error when single lifecycle rule with more than one prefix.
Updated by Casey Bodley over 3 years ago
- Status changed from New to Fix Under Review
- Assignee set to Daniel Gryniewicz
- Backport set to nautilus octopus
Updated by Konstantin Shalygin almost 3 years ago
- % Done changed from 0 to 40
- Source set to Community (user)
- Backport changed from nautilus octopus to nautilus octopus pacific
- Affected Versions v14.2.21 added