You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Biswa Ranjan Ray (Jira)" <ji...@apache.org> on 2020/07/03 03:18:00 UTC

[jira] [Comment Edited] (JCLOUDS-1491) Jclouds uses a deprecated version of Guava to support Azure storage.

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

Biswa Ranjan Ray edited comment on JCLOUDS-1491 at 7/3/20, 3:17 AM:
--------------------------------------------------------------------

We have upgraded our application to use jclouds 2.2.0 and also we are using guava 27.0.1-jre. Is the above fix available in jclouds 2.2.0 ? If not could you please suggest us which version of guava can be used with jclouds 2.2.0.

Appreciate your effort and time.

Thank you.


was (Author: roy.biswa):
We have upgraded our application to use jclouds 2.2.0 and still using guava 27.0.1-jre. Is the above fix available in jclouds 2.2.0 ? If not can you please suggest us which version of guava can be used with jclouds 2.2.0. 

Thank you.

> Jclouds uses a deprecated version of Guava to support Azure storage.
> --------------------------------------------------------------------
>
>                 Key: JCLOUDS-1491
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1491
>             Project: jclouds
>          Issue Type: Improvement
>          Components: jclouds-core
>    Affects Versions: 2.2.1
>            Reporter: Biswa Ranjan Ray
>            Assignee: Andrew Gaul
>            Priority: Major
>              Labels: azureblob
>             Fix For: 2.3.0
>
>         Attachments: jclouds_issue.txt
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Hi,
> We are facing an issue while using jclouds library along with Guava to support Azure storage.
> *Issue:*
> We are using Jclouds 2.1.2 and Guava 27.0.1-jre in our application to work with objectstore service offered by several cloud providers. These libraries works seamlessly for AWS S3 and GCS. But in case of azure we get an exception. Please see the attachment for stack trace.
> *Analysis:*
> We found that the issue is there with the below code in DnsValidator class at line 53:
> {code:java}
>       if (CharMatcher.JAVA_LETTER_OR_DIGIT.indexIn(name) != 0)
> {code}
> The above static field is deprecated in Guava 27.0.1-jre. But apparently jclouds library still refers to a deprecated version of Guava as mentioned in the jclouds doc:
> {quote}Setup your project to include 'guava'. Include following dependency to jclouds Installation. Update the version mentioned in dependency below to the latest available version. com.google.guava guava 16.0
> {quote}
> If not the latest at least we would like to use the recent version of Guava. But Guava 16.0 is really old and deprecated as well. Any thoughts are appreciated.



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