Skip to content

Commit

Permalink
Fix mpu block id
Browse files Browse the repository at this point in the history
it must be base64-encoded in new azure API.

Issue: ARSN-281
  • Loading branch information
francoisferrand committed Dec 16, 2022
1 parent 66c4bc5 commit a4f4c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/s3middleware/azureHelpers/mpuUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const getBlockId = (
const paddedSubPart = padString(subPartIndex, 'subPart');
const blockId = `${uploadId}${splitter}partNumber${paddedPartNumber}` +
`${splitter}subPart${paddedSubPart}${splitter}`;
return padString(blockId, 'part');
return Buffer.from(padString(blockId, 'part')).toString('base64');
};

export const getSummaryPartId = (partNumber: number, eTag: string, size: number) => {
Expand Down

0 comments on commit a4f4c51

Please sign in to comment.