This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch azure-storage-blob-source-fix in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 1323a769628ea2d3c437d3170aec26b15ba8d490 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Jul 27 15:35:00 2021 +0200 Azure Storage Blob Source: Don't use to-d but work through headers --- .../kamelets/azure-storage-blob-source.kamelet.yaml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-source.kamelet.yaml index 3c30be7..c8281da 100644 --- a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-source.kamelet.yaml +++ b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-source.kamelet.yaml @@ -65,7 +65,21 @@ spec: - set-property: name: azureBlobName simple: ${body.name} - - to-d: "azure-storage-blob:{{accountName}}/{{containerName}}?accessKey=RAW({{accessKey}})&operation=getBlob&blobName=${exchangeProperty.azureBlobName}" + - set-header: + name: CamelAzureStorageBlobBlobName + simple: ${exchangeProperty.azureBlobName} + - to: + uri: "azure-storage-blob:{{accountName}}/{{containerName}}" + parameters: + operation: "getBlob" + accessKey: "{{accessKey}}" - to: "kamelet:sink" - - to-d: "azure-storage-blob:{{accountName}}/{{containerName}}?accessKey=RAW({{accessKey}})&operation=deleteBlob&blobName=${exchangeProperty.azureBlobName}" + - set-header: + name: CamelAzureStorageBlobBlobName + simple: ${exchangeProperty.azureBlobName} + - to: + uri: "azure-storage-blob:{{accountName}}/{{containerName}}" + parameters: + operation: "deleteBlob" + accessKey: "{{accessKey}}"