Skip to content

Commit c73e83e

Browse files
committed
[solution] Fix blob location sanitization in the 'uploadRunTemplateHandler' endpoint
1 parent 7d212ce commit c73e83e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

solution/src/main/kotlin/com/cosmotech/solution/azure/SolutionServiceImpl.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,8 @@ class SolutionServiceImpl(
380380

381381
azureStorageBlobServiceClient
382382
.getBlobContainerClient(organizationId.sanitizeForAzureStorage())
383-
.getBlobClient("$solutionId/$runTemplateId/${handlerId}.zip".sanitizeForAzureStorage())
383+
.getBlobClient(
384+
"${solutionId.sanitizeForAzureStorage()}/$runTemplateId/${handlerId.value}.zip")
384385
.upload(body.inputStream, body.contentLength(), overwrite)
385386

386387
val runTemplate = solution.runTemplates.findLast { it.id == runTemplateId }!!

0 commit comments

Comments
 (0)