Commit b454668
committed
rgw: PutObjectLockConfiguration can enable object lock on existing buckets
AWS now allows PutObjectLockConfiguration on existing buckets, even if
x-amz-bucket-object-lock-enabled was not specified on bucket creation
object lock still requires the bucket to be versioning-enabled, so such
requests are rejected otherwise. if the bucket is versioning-enabled but
not object-lock-enabled, enable the BUCKET_OBJ_LOCK_ENABLED flag
this logic was moved into retry_raced_bucket_write() in case the request
races with PutBucketVersioning
Fixes: https://tracker.ceph.com/issues/70013
Signed-off-by: Casey Bodley <[email protected]>1 parent af9e68e commit b454668
2 files changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8651 | 8651 | | |
8652 | 8652 | | |
8653 | 8653 | | |
8654 | | - | |
8655 | | - | |
| 8654 | + | |
| 8655 | + | |
| 8656 | + | |
8656 | 8657 | | |
8657 | 8658 | | |
8658 | 8659 | | |
| |||
8695 | 8696 | | |
8696 | 8697 | | |
8697 | 8698 | | |
| 8699 | + | |
| 8700 | + | |
| 8701 | + | |
| 8702 | + | |
| 8703 | + | |
| 8704 | + | |
| 8705 | + | |
| 8706 | + | |
| 8707 | + | |
| 8708 | + | |
| 8709 | + | |
8698 | 8710 | | |
8699 | 8711 | | |
8700 | 8712 | | |
| |||
0 commit comments