Igor Ajdisek created LIBCLOUD-447:
-------------------------------------
Summary: 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
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)