Actions
Enhancement #79570
closed
SK
MH
rgw/copy_object_conditional : Handle destination object preconditions too
Enhancement #79570:
rgw/copy_object_conditional : Handle destination object preconditions too
Due date:
% Done:
0%
Tags (freeform):
Merge Commit:
Fixed In:
v22.0.0-849-gacfcfcce79
Released In:
Upkeep Timestamp:
2026-11-13T07:39:14+00:00
Description
As per AWS spec https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html, copy-object allows preconditions can be specified for both source and destination objects
If-Match
Copies the object if the entity tag (ETag) of the destination object matches the specified tag. If the ETag values do not match, the operation returns a 412 Precondition Failed error. If a concurrent operation occurs during the upload S3 returns a 409 ConditionalRequestConflict response. On a 409 failure you should fetch the object's ETag and retry the upload.
Expects the ETag value as a string.
For more information about conditional requests, see RFC 7232.
If-None-Match
Copies the object only if the object key name at the destination does not already exist in the bucket specified. Otherwise, Amazon S3 returns a 412 Precondition Failed error. If a concurrent operation occurs during the upload S3 returns a 409 ConditionalRequestConflict response. On a 409 failure you should retry the upload.
Expects the '*' (asterisk) character.
For more information about conditional requests, see RFC 7232.
However RGW current handles and validates pre-conditions only for the source object. This needs to be supported for destination object too.
MH Updated by Matthew Heler 3 months ago
- Status changed from New to Fix Under Review
- Pull request ID set to 71588
MH Updated by Matthew Heler 3 months ago
- Backport set to tentacle, umbrella
MH Updated by Matthew Heler 3 months ago
- Assignee set to Matthew Heler
UB Updated by Upkeep Bot 20 days ago
- Copied to Backport #83128: tentacle: rgw/copy_object_conditional : Handle destination object preconditions too added
UB Updated by Upkeep Bot 20 days ago
- Copied to Backport #83129: umbrella: rgw/copy_object_conditional : Handle destination object preconditions too added
UB Updated by Upkeep Bot 20 days ago
- Status changed from Fix Under Review to Backporting
- Merge Commit set to acfcfcce79496f31396c3af931268eb5fb9a06d7
- Fixed In set to v22.0.0-849-gacfcfcce79
- Upkeep Timestamp set to 2026-11-13T07:39:14+00:00
Actions