Skip to content

Commit

Permalink
fixup! Add versionId user-metadata when restoring OOB object
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisferrand committed Jan 31, 2025
1 parent 497a84b commit dace2cd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/api/initiateMultipartUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,7 @@ function initiateMultipartUpload(authInfo, request, log, callback) {
// backend, and it is thus not match the versionId of the ingested object. Thus we add extra
// user metadata to allow OOB to allow ingestion processor to "match" the (new) restored
// object with the existing ingested object.
mpuInfo.metaHeaders = {
...metaHeaders,
'x-amz-meta-scal-version-id': putVersionId,
};
mpuInfo.metaHeaders['x-amz-meta-scal-version-id'] = putVersionId;
}

return data.initiateMPU(mpuInfo, websiteRedirectHeader, log,
Expand Down

0 comments on commit dace2cd

Please sign in to comment.