Bug #51465
openthe rgw_bucket_dir_entry is not updated when set acl
0%
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.
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?
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>"b026324c6904b2a9cb4b88d6d61c81d1"</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>"b026324c6904b2a9cb4b88d6d61c81d1"</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
Updated by yunqing wang almost 3 years ago
Updated by Casey Bodley almost 3 years ago
- Status changed from Need More Info to Fix Under Review