[ 
https://issues.apache.org/jira/browse/CAMEL-16491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17326373#comment-17326373
 ] 

Zineb Bendhiba commented on CAMEL-16491:
----------------------------------------

the volume is the first element. [Doc and example 
|https://developers.digitalocean.com/documentation/v2/#retrieve-an-existing-block-storage-volume-by-name]

 

 

 

> digitalocean: when finding a volume by name, bug while selecting the first 
> element of the list
> ----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-16491
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16491
>             Project: Camel
>          Issue Type: Improvement
>    Affects Versions: 3.9.0
>            Reporter: Zineb Bendhiba
>            Assignee: Zineb Bendhiba
>            Priority: Major
>
> this line is problematic :  
> [https://github.com/apache/camel/blob/e3d5e5b7ea2cc8c1044b091fb7134e9bcabdbdf8/components/camel-digitalocean/src/main/java/org/apache/camel/component/digitalocean/producer/DigitalOceanBlockStoragesProducer.java#L142]
>  
> It should return the first element of the list. there an 
> java.lang.IndexOutOfBoundsException:
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to