Actions
Bug #61770
openrgw: PutObjectACL should not modify mtime
% Done:
0%
Source:
Tags:
backport_processed
Backport:
quincy reef
Regression:
No
Severity:
3 - minor
Reviewed:
Description
For any metadata changes on versioned objects (current/non-current), its bucket index entry (mtime) is not updated. For eg.,
date --utc; aws --no-verify-ssl --endpoint-url http://localhost:8000 s3api put-object-acl --bucket bucket1 --key lc_obj1 --acl private --version-id=AWsTipKl2P.Scy4DktmwISbHz3pr-9e
Wed Jun 21 09:31:49 AM UTC 2023
aws --no-verify-ssl --endpoint-url http://localhost:8000 s3api head-object --bucket bucket1 --key lc_obj1 --version-id=AWsTipKl2P.Scy4DktmwISbHz3pr-9e
{
"AcceptRanges": "bytes",
"LastModified": "Wed, 21 Jun 2023 09:31:49 GMT", >>>>>>>>>>>> 'updated mtime'
"ContentLength": 12,
"ETag": "\"ed076287532e86365e841e92bfc50d8c\"",
"VersionId": "AWsTipKl2P.Scy4DktmwISbHz3pr-9e",
"ContentType": "text/plain",
"Metadata": {
"s3cmd-attrs": "atime:1687330800/ctime:1599663278/gid:0/gname:root/md5:ed076287532e86365e841e92bfc50d8c/mode:33188/mtime:1599663278/uid:0/uname:root"
},
"StorageClass": "STANDARD"
}
aws s3api --no-verify-ssl --endpoint http://localhost:8000 list-object-versions --bucket bucket1 --key lc_obj1 | grep "AWsTipKl2P.Scy4DktmwISbHz3pr-9e" -C 8
"ID": "cosbench"
}
},
{
"ETag": "\"ed076287532e86365e841e92bfc50d8c\"",
"Size": 12,
"StorageClass": "STANDARD",
"Key": "lc_obj1",
"VersionId": "AWsTipKl2P.Scy4DktmwISbHz3pr-9e",
"IsLatest": false,
"LastModified": "2023-06-21T09:23:24.052Z", >>>>>>>>>>>> 'old mtime'
"Owner": {
"DisplayName": "cosbench_user",
"ID": "cosbench"
}
},
{
Updated by Casey Bodley 11 months ago
- Subject changed from rgw: bucket index entry not updated for versioned objects to rgw: PutObjectACL should not modify mtime
- Status changed from In Progress to Fix Under Review
Updated by Soumya Koduri 11 months ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to quincy reef
Updated by Backport Bot 11 months ago
- Copied to Backport #61877: quincy: rgw: PutObjectACL should not modify mtime added
Updated by Backport Bot 11 months ago
- Copied to Backport #61878: reef: rgw: PutObjectACL should not modify mtime added
Actions