This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch 20995-4.0.x in repository https://gitbox.apache.org/repos/asf/camel.git
commit 3bc5d0d9ad615a0ad8ddfbb0f6b66eb107c98042 Author: Herve Dumont <hdum...@opentext.com> AuthorDate: Fri Jul 19 14:44:20 2024 +0200 CAMEL-20995: azure-blob Enable retry during upload if input stream support mark/reset --- .../camel/component/azure/storage/blob/client/BlobClientWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-azure/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/client/BlobClientWrapper.java b/components/camel-azure/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/client/BlobClientWrapper.java index f020b542fdf..d7e3290d1f1 100644 --- a/components/camel-azure/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/client/BlobClientWrapper.java +++ b/components/camel-azure/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/client/BlobClientWrapper.java @@ -124,7 +124,7 @@ public class BlobClientWrapper { final Map<String, String> metadata, AccessTier tier, final byte[] contentMd5, final BlobRequestConditions requestConditions, final Duration timeout) { - Flux<ByteBuffer> dataBuffer = Utility.convertStreamToByteBuffer(data, length, 4194304, false); + Flux<ByteBuffer> dataBuffer = Utility.convertStreamToByteBuffer(data, length, 4194304, data.markSupported()); BlockBlobSimpleUploadOptions uploadOptions = new BlockBlobSimpleUploadOptions(dataBuffer, length).setHeaders(headers) .setMetadata(metadata).setTier(tier).setContentMd5(contentMd5).setRequestConditions(requestConditions); return getBlockBlobClient().uploadWithResponse(uploadOptions, timeout, Context.NONE);