Skip to content

Commit 3ea120e

Browse files
tmacroBourgoisMickael
authored andcommitted
impr(CLDSRV-621): Set owner-id in CopyPart to match PutPart
(cherry picked from commit fe77871)
1 parent d26bb7e commit 3ea120e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/api/objectPutCopyPart.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ function objectPutCopyPart(authInfo, request, sourceBucket,
329329
splitter: constants.splitter,
330330
lastModified,
331331
overheadField: constants.overheadField,
332+
ownerId: destBucketMD.getOwner(),
332333
};
333334
return services.metadataStorePart(mpuBucketName,
334335
locations, metaStoreParams, log, err => {

lib/services.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ const services = {
734734
metadataStorePart(mpuBucketName, partLocations,
735735
metaStoreParams, log, cb) {
736736
assert.strictEqual(typeof mpuBucketName, 'string');
737-
const { partNumber, contentMD5, size, uploadId, lastModified, splitter, overheadField }
737+
const { partNumber, contentMD5, size, uploadId, lastModified, splitter, overheadField, ownerId }
738738
= metaStoreParams;
739739
const dateModified = typeof lastModified === 'string' ?
740740
lastModified : new Date().toJSON();
@@ -749,6 +749,7 @@ const services = {
749749
'last-modified': dateModified,
750750
'content-md5': contentMD5,
751751
'content-length': size,
752+
'owner-id': ownerId,
752753
};
753754

754755
const params = {};

0 commit comments

Comments
 (0)