You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/08/23 18:26:00 UTC

[jira] [Commented] (JCLOUDS-1443) unable to resolve URI with complex host

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

ASF subversion and git services commented on JCLOUDS-1443:
----------------------------------------------------------

Commit bcc6a2648834335d711cee7cb219e4ad7552979b in jclouds's branch refs/heads/master from [~tormath1]
[ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=bcc6a26 ]

JCLOUDS-1443: fix(rest/processor): check if `/` is ending a default endpoint


> unable to resolve URI with complex host
> ---------------------------------------
>
>                 Key: JCLOUDS-1443
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1443
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-core
>            Reporter: Mathieu Tortuyaux
>            Priority: Minor
>              Labels: easyfix
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> We need to be sure that the base URL in this [method| https://github.com/tormath1/jclouds/blob/master/core/src/main/java/org/jclouds/rest/internal/RestAnnotationProcessor.java#L576] is ending with a `/`. If not, the final URL will be wrong formatted.
> Example: 
> {code:java}
> public class Toto {
>   public static void main(String []argv) throws Exception {
>     URI uri1 = URI.create("https://www.googleapis.com/compute/v1");
>     URI uri2 = URI.create("projects/a-project/regions/us-east1/subnetworks/toto");
>     URI uri3 = URI.create("https://www.googleapis.com/compute/v1/");
>     System.out.println(uri1.resolve(uri2));
>     // output: https://www.googleapis.com/compute/projects/a-project/regions/us-east1/subnetworks/toto
>     System.out.println(uri3.resolve(uri2));
>     // output: https://www.googleapis.com/compute/v1/projects/a-project/regions/us-east1/subnetworks/toto
>   }
> }
> {code}



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