Project

General

Profile

Actions

Bug #46702

open

rgw:lc: lifecycle rule with more than one prefix in RGWPutLC::execute() should throw error

Added by Huber ming over 3 years ago. Updated almost 3 years ago.

Status:
Fix Under Review
Priority:
Normal
Target version:
-
% Done:

40%

Source:
Community (user)
Tags:
lifecycle
Backport:
nautilus octopus pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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.

Actions #1

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
Actions #2

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
Actions

Also available in: Atom PDF