Skip to content
Permalink
Browse files
Merge pull request #348 from adamcin/OAK-9548-azure-put-block-blockId…
…-to-blockid

OAK-9548 changed the blockId parameter to match blockid parameter in azure Put Block API spec
  • Loading branch information
mattvryan committed Feb 25, 2022
2 parents c6b0ddc + 8dd0905 commit a785a890f7bd78feed903e4835470a04315d0a2b
Showing 1 changed file with 2 additions and 1 deletion.
@@ -968,9 +968,10 @@ else if (maxUploadSizeInBytes > MAX_BINARY_UPLOAD_SIZE) {

EnumSet<SharedAccessBlobPermissions> perms = EnumSet.of(SharedAccessBlobPermissions.WRITE);
Map<String, String> presignedURIRequestParams = Maps.newHashMap();
// see https://docs.microsoft.com/en-us/rest/api/storageservices/put-block#uri-parameters
presignedURIRequestParams.put("comp", "block");
for (long blockId = 1; blockId <= numParts; ++blockId) {
presignedURIRequestParams.put("blockId",
presignedURIRequestParams.put("blockid",
Base64.encode(String.format("%06d", blockId)));
uploadPartURIs.add(
createPresignedURI(key,

0 comments on commit a785a89

Please sign in to comment.