Skip to content

Commit

Permalink
Merge branch 'w/8.6/bugfix/BB-640/header' into tmp/octopus/w/9.0/bugfix/
Browse files Browse the repository at this point in the history
BB-640/header
  • Loading branch information
bert-e committed Dec 20, 2024
2 parents b32554f + eb5dcec commit 6062cd2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/replication/tasks/ReplicateObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,8 @@ class ReplicateObject extends BackbeatTask {
ContentLength: partSize,
ContentMD5: partObj.getPartETag(),
Body: incomingMsg,
// destination bucket has to be versioning enabled.
VersioningRequired: true,
});
attachReqUids(destReq, log);
const writeStartTime = Date.now();
Expand Down Expand Up @@ -589,6 +591,8 @@ class ReplicateObject extends BackbeatTask {
ContentLength: Buffer.byteLength(mdBlob),
Body: mdBlob,
ReplicationContent: replicationContent,
// destination bucket has to be versioning enabled.
VersioningRequired: true,
});
attachReqUids(req, log);
const writeStartTime = Date.now();
Expand Down
10 changes: 10 additions & 0 deletions lib/clients/backbeat-2017-07-01.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
"location": "header",
"locationName": "X-Scal-Canonical-Id"
},
"VersioningRequired": {
"location": "header",
"locationName": "x-scal-versioning-required",
"type": "boolean"
},
"Body": {
"streaming": true,
"type": "blob"
Expand Down Expand Up @@ -738,6 +743,11 @@
"location": "header",
"locationName": "x-scal-replication-content",
"type": "string"
},
"VersioningRequired": {
"location": "header",
"locationName": "x-scal-versioning-required",
"type": "boolean"
}
},
"payload": "Body"
Expand Down

0 comments on commit 6062cd2

Please sign in to comment.