Project

General

Profile

Bug #37879

rgw: fix prefix handling in LCFilter

Added by Matt Benjamin 5 days ago. Updated 5 days ago.

Status:
Need Review
Priority:
Normal
Assignee:
Target version:
Start date:
01/11/2019
Due date:
% Done:

0%

Source:
Support
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

A lifecycle configuration document such as the following is legal (see examples at https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html), but was rejected due to RGW-internal prefix handling.

"""

<LifecycleConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Rule>
<ID>delete-7-days</ID>
<Filter>
<Tag>
<Key>suffix</Key>
<Value>WMV</Value>
</Tag>
</Filter>
<Status>Enabled</Status>
<Expiration>
<Days>7</Days>
</Expiration>
</Rule>
<Rule>
<ID>delete-8-days</ID>
<Filter>
<Tag>
<Key>tim</Key>
<Value>tam</Value>
</Tag>
</Filter>
<Status>Enabled</Status>
<Expiration>
<Days>8</Days>
</Expiration>
</Rule>
</LifecycleConfiguration>
"""

History

#1 Updated by Matt Benjamin 5 days ago

  • Status changed from In Progress to Need Review

Also available in: Atom PDF