Bug 1786226 - S3 HEAD/GET operations on objects that do not match the lifecycle rule return x-amz-expiration header
Summary: S3 HEAD/GET operations on objects that do not match the lifecycle rule return...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 3.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: 5.0
Assignee: Matt Benjamin (redhat)
QA Contact: Tejas
Ranjini M N
URL:
Whiteboard:
Depends On:
Blocks: 1833309 1959686
TreeView+ depends on / blocked
 
Reported: 2019-12-24 03:55 UTC by xuchen334
Modified: 2023-09-15 00:20 UTC (History)
8 users (show)

Fixed In Version: ceph-15.2.4-9.el8cp
Doc Type: Bug Fix
Doc Text:
.S3 lifecycle expiration header feature identifies the objects as expected Previously, some objects without a lifecycle expiration were incorrectly identified in GET or HEAD requests as having a lifecycle expiration due to an error in the logic of the feature when comparing object names to stored lifecycle policy. With this update, the S3 lifecycle expiration header feature works as expected and identifies the objects correctly.
Clone Of:
: 1833309 (view as bug list)
Environment:
Last Closed: 2021-08-30 08:22:57 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 45144 0 None None None 2020-05-07 17:03:30 UTC
Red Hat Issue Tracker RHCEPH-1121 0 None None None 2021-08-30 00:12:02 UTC
Red Hat Product Errata RHBA-2021:3294 0 None None None 2021-08-30 08:23:31 UTC

Description xuchen334 2019-12-24 03:55:09 UTC
Description of problem:

After putting a lifecycle expiration rule with prefix 'a' on a bucket,HEAD or GET on objects in this bucket will allways return x-amz-expiration header,whether the object key starts with an 'a' or not.

Version-Release number of selected component (if applicable):

ceph version ceph-12.2.12-74.el7cp luminous

How reproducible:

Every time

Steps to Reproduce:
1.Install ceph-12.2.12-74
2.Create a bucket and inside the bucket put an object whose key is 'b.txt'
3.Put lifecycle configuration on this bucket,with an expiration rule whose prefix is 'a'
4.Make an HEAD request on 'b.txt'

Actual results:

x-amz-expiration header included in response

Expected results:

x-amz-expiration header not included in response


Additional info:

Comment 10 errata-xmlrpc 2021-08-30 08:22:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 5.0 bug fix and enhancement), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:3294

Comment 11 Red Hat Bugzilla 2023-09-15 00:20:24 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days


Note You need to log in before you can comment on or make changes to this bug.