You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "Tomaz Muraus (JIRA)" <ji...@apache.org> on 2013/11/27 14:34:35 UTC
[jira] [Commented] (LIBCLOUD-447) Abique driver fails if endpoint
URI differs from /api
[ https://issues.apache.org/jira/browse/LIBCLOUD-447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13833798#comment-13833798 ]
Tomaz Muraus commented on LIBCLOUD-447:
---------------------------------------
[~igoraj] I just want to confirm - what should get_href return in your case "/admin/enterprises/1234" or "/jclouds/apiouds/api/admin/enterprises/1234"?
> Abique driver fails if endpoint URI differs from /api
> -----------------------------------------------------
>
> Key: LIBCLOUD-447
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-447
> Project: Libcloud
> Issue Type: Bug
> Components: Compute
> Affects Versions: 0.13.2
> Reporter: Igor Ajdisek
> Labels: abiquo
>
> Service provider Interoute uses Abiquo 2.0 API but their endpoint URI does not begin with /api. Current driver implementation has hardcoded '/api' in line 88:common/abiquo.py which results in wrong parsing of hrefs returned by API.
> API endpoint: http://vdcbridge.interoute.com:80/jclouds/api
> After successful login API returns:
> <link rel="enterprise" type="application/vnd.abiquo.enterprise+xml" href="http://vdcbridge.interoute.com/jclouds/api/admin/enterprises/1234"/>
> and href then gets parsed to:
> http://vdcbridge.interoute.com:80/jclouds/apiouds/api/admin/enterprises/1234
> which results in 404.
> get_href should use defined endpoint instead of hardcoded value.
--
This message was sent by Atlassian JIRA
(v6.1#6144)