Project

General

Profile

Actions

Bug #51465

open

the rgw_bucket_dir_entry is not updated when set acl

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

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

0%

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

Description

1. create an bucket
2. enable versioning
3. put object
4. set object acl
then the object attr update, but the rgw_bucket_dir_entry in bucket index is not update.

Actions #1

Updated by Casey Bodley almost 3 years ago

  • Status changed from New to Need More Info

Hi, can you help us understand the consequence of this issue? Why does it need to update the rgw_bucket_dir_entry?

Actions #2

Updated by yunqing wang almost 3 years ago

1. create bucket `ppp`
2. enable bucket version of 'ppp'
3. put a object named `1`
4. set the acl of `1` to public
5. list object or list versioned object of 'ppp' give wrong `LastModified` of `1` which is diff with head `1`

list object result

<?xml version="1.0" encoding="UTF-8"?>
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
    <Name>ppp</Name>
    <Prefix></Prefix>
    <MaxKeys>1000</MaxKeys>
    <IsTruncated>false</IsTruncated>
    <Contents>
        <Key>1</Key>
        <LastModified>2021-07-06T07:38:29.062Z</LastModified>
        <ETag>&quot;b026324c6904b2a9cb4b88d6d61c81d1&quot;</ETag>
        <Size>2</Size>
        <StorageClass>STANDARD</StorageClass>
        <Owner>
            <ID>test</ID>
            <DisplayName>test</DisplayName>
        </Owner>
        <Type>Normal</Type>
    </Contents>
    <Marker></Marker>
</ListBucketResult>

list versioned object

<?xml version="1.0" encoding="UTF-8"?>
<ListVersionsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
    <Name>ppp</Name>
    <Prefix></Prefix>
    <MaxKeys>1000</MaxKeys>
    <IsTruncated>false</IsTruncated>
    <KeyMarker></KeyMarker>
    <VersionIdMarker></VersionIdMarker>
    <Version>
        <Key>1</Key>
        <VersionId>7mR.1MpZEDyJM0TRss9tW9sE8WBgIH6</VersionId>
        <IsLatest>true</IsLatest>
        <LastModified>2021-07-06T07:38:29.062Z</LastModified>
        <ETag>&quot;b026324c6904b2a9cb4b88d6d61c81d1&quot;</ETag>
        <Size>2</Size>
        <StorageClass>STANDARD</StorageClass>
        <Owner>
            <ID>test</ID>
            <DisplayName>test</DisplayName>
        </Owner>
        <Type>Normal</Type>
    </Version>
</ListVersionsResult>

head object

HTTP/1.1 200 OK
Content-Length: 2
Accept-Ranges: bytes
Last-Modified: Tue, 06 Jul 2021 07:46:07 GMT
x-amz-version-id: 7mR.1MpZEDyJM0TRss9tW9sE8WBgIH6
x-rgw-object-type: Normal
ETag: "b026324c6904b2a9cb4b88d6d61c81d1"
X-Amz-Storage-Class: STANDARD
x-amz-request-id: tx000000000000000000011-0060e40af6-1bc5c-test
Content-Type: text/plain
Date: Tue, 06 Jul 2021 07:49:10 GMT
Connection: Keep-Alive

Actions #4

Updated by Casey Bodley almost 3 years ago

  • Status changed from Need More Info to Fix Under Review
Actions #5

Updated by Or Friedmann almost 3 years ago

  • Assignee set to Or Friedmann
Actions #6

Updated by Casey Bodley over 2 years ago

  • Pull request ID set to 42191
Actions

Also available in: Atom PDF