Andrey Poltavtsev created CAMEL-13132:
-----------------------------------------

             Summary: uploadBlobBlocks and commitBlobBlockList operations does 
not work with List from message Body
                 Key: CAMEL-13132
                 URL: https://issues.apache.org/jira/browse/CAMEL-13132
             Project: Camel
          Issue Type: Bug
          Components: camel-azure
    Affects Versions: 2.21.2
            Reporter: Andrey Poltavtsev


This is problematic code on 2.21.2:

[https://github.com/apache/camel/blob/release/2.21.2/components/camel-azure/src/main/java/org/apache/camel/component/azure/blob/BlobServiceProducer.java#L160]

the same issue for "commitBlobBlockList": 

[https://github.com/apache/camel/blob/release/2.21.2/components/camel-azure/src/main/java/org/apache/camel/component/azure/blob/BlobServiceProducer.java#L192]

 

it is necessary to replace it by "blobBlocks = (List<BlobBlock>)object;" and by 
"blockEntries = (List<BlockEntry>)object;" correspondingly

 

In master problematic code is more strange, but can be resolved in the same way:

[https://github.com/apache/camel/blob/master/components/camel-azure/src/main/java/org/apache/camel/component/azure/blob/BlobServiceProducer.java#156]

and the same issue for "commitBlobBlockList": 

[https://github.com/apache/camel/blob/master/components/camel-azure/src/main/java/org/apache/camel/component/azure/blob/BlobServiceProducer.java#L188]

 

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to