Compare commits

...

1 Commits

Author SHA1 Message Date
Will Toozs 435eb282d8
bugfix: ARTESCA-2064 remove metadata copy skip 2022-01-25 11:08:58 +01:00
1 changed files with 1 additions and 11 deletions

View File

@ -378,18 +378,8 @@ function objectCopy(authInfo, request, sourceBucket,
const isVersionedObj = vcfg && vcfg.Status === 'Enabled';
const destLocationConstraintName =
storeMetadataParams.dataStoreName;
const needsEncryption = serverSideEncryption && !!serverSideEncryption.algo;
// skip if source and dest and location constraint the same and
// versioning is not enabled
// still send along serverSideEncryption info so algo
// and masterKeyId stored properly in metadata
if (sourceIsDestination && storeMetadataParams.locationMatch
&& !isVersionedObj && !needsEncryption) {
return next(null, storeMetadataParams, dataLocator, destObjMD,
serverSideEncryption, destBucketMD);
}
// also skip if 0 byte object, unless location constraint is an
// skip if 0 byte object, unless location constraint is an
// external backend and differs from source, in which case put
// metadata to backend
let destLocationConstraintType;