Project

General

Profile

Actions

Bug #61770

closed
SK SK

rgw: PutObjectACL should not modify mtime

Bug #61770: rgw: PutObjectACL should not modify mtime

Added by Soumya Koduri over 3 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
quincy reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v18.0.0-4712-g0c5a77f4c9
Released In:
v19.2.0~2077
Upkeep Timestamp:
2025-07-14T19:10:19+00:00

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"
}
}, {

Related issues 2 (0 open — 2 closed)

Copied to rgw - Backport #61877: quincy: rgw: PutObjectACL should not modify mtimeResolvedSoumya Koduri

Actions
Copied to rgw - Backport #61878: reef: rgw: PutObjectACL should not modify mtimeResolvedSoumya Koduri

Actions

CB Updated by Casey Bodley over 3 years ago Actions #1

  • Pull request ID set to 52160

CB Updated by Casey Bodley over 3 years ago Actions #2

  • 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

SK Updated by Soumya Koduri over 3 years ago Actions #3

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to quincy reef

UB Updated by Upkeep Bot over 3 years ago Actions #4

  • Copied to Backport #61877: quincy: rgw: PutObjectACL should not modify mtime added

UB Updated by Upkeep Bot over 3 years ago Actions #5

  • Copied to Backport #61878: reef: rgw: PutObjectACL should not modify mtime added

UB Updated by Upkeep Bot over 1 year ago Actions #7

  • Merge Commit set to 0c5a77f4c947d75fe0aa524f3779939154887da0
  • Fixed In set to v18.0.0-4712-g0c5a77f4c94
  • Released In set to v19.2.0~2077
  • Upkeep Timestamp set to 2025-07-09T16:44:04+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #8

  • Fixed In changed from v18.0.0-4712-g0c5a77f4c94 to v18.0.0-4712-g0c5a77f4c9
  • Upkeep Timestamp changed from 2025-07-09T16:44:04+00:00 to 2025-07-14T19:10:19+00:00

SK Updated by Soumya Koduri over 1 year ago Actions #9

  • Status changed from Pending Backport to Resolved
Actions

Also available in: PDF Atom