Project

General

Profile

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

Added by Soumya Koduri 4 months ago. Updated 20 days ago.

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

0%

Source:
Backport:
tentacle, umbrella
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
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.


Related issues 2 (2 open — 0 closed)

Copied to rgw - Backport #83128: tentacle: rgw/copy_object_conditional : Handle destination object preconditions tooNewMatthew Heler

Actions
Copied to rgw - Backport #83129: umbrella: rgw/copy_object_conditional : Handle destination object preconditions tooNewMatthew Heler

Actions

MH Updated by Matthew Heler 3 months ago Actions #1

  • Status changed from New to Fix Under Review
  • Pull request ID set to 71588

MH Updated by Matthew Heler 3 months ago Actions #2

  • Backport set to tentacle, umbrella

MH Updated by Matthew Heler 3 months ago Actions #3

  • Assignee set to Matthew Heler

UB Updated by Upkeep Bot 20 days ago Actions #4

  • Copied to Backport #83128: tentacle: rgw/copy_object_conditional : Handle destination object preconditions too added

UB Updated by Upkeep Bot 20 days ago Actions #5

  • Copied to Backport #83129: umbrella: rgw/copy_object_conditional : Handle destination object preconditions too added

UB Updated by Upkeep Bot 20 days ago Actions #6

  • 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

Also available in: PDF Atom