Bug 1786226

Summary: S3 HEAD/GET operations on objects that do not match the lifecycle rule return x-amz-expiration header
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: xuchen334
Component: RGWAssignee: Matt Benjamin (redhat) <mbenjamin>
Status: CLOSED ERRATA QA Contact: Tejas <tchandra>
Severity: medium Docs Contact: Ranjini M N <rmandyam>
Priority: medium    
Version: 3.3CC: cbodley, ceph-eng-bugs, ceph-qe-bugs, kbader, mbenjamin, rmandyam, sweil, tserlin
Target Milestone: ---   
Target Release: 5.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of:
: 1833309 (view as bug list) Environment:
Last Closed: 2021-08-30 08:22:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1833309, 1959686    

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