You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by "Geoff Greer (JIRA)" <ji...@apache.org> on 2012/06/03 09:30:23 UTC

[dev] [jira] [Updated] (LIBCLOUD-206) Container.get_cdn_url() fails

     [ https://issues.apache.org/jira/browse/LIBCLOUD-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Geoff Greer updated LIBCLOUD-206:
---------------------------------

    Attachment: fix_massive_hack.patch

This fixes a big hack with a slightly smaller hack.
                
> Container.get_cdn_url() fails
> -----------------------------
>
>                 Key: LIBCLOUD-206
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-206
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Storage
>    Affects Versions: 0.10.1
>         Environment: OS X 10.7.4, Python 2.7.1
>            Reporter: Geoff Greer
>            Priority: Minor
>              Labels: patch
>         Attachments: fix_massive_hack.patch
>
>
> For Rackspace Cloudfiles, container.get_cdn_url() fails. It's hitting https://storage101.dfw1.clouddrive.com:443 when it should be doing a request to https://cdn1.clouddrive.com:443.
> container.get_cdn_url()
>   File "/Users/ggreer/code/libcloud/libcloud/storage/base.py", line 123, in get_cdn_url
>     return self.driver.get_container_cdn_url(container=self)
>   File "/Users/ggreer/code/libcloud/libcloud/storage/drivers/cloudfiles.py", line 276, in get_container_cdn_url
>     cdn_url = response.headers['x-cdn-uri']
> KeyError: 'x-cdn-uri'
> The problem is that Connection::request() calls morph_action_hook, which calls _populate_hosts_and_request_paths(), which changes self.host. This happens after CloudFilesConnection::request calls _reset_connection_params().

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira