Geoff Greer created LIBCLOUD-206:
------------------------------------

             Summary: 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


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

        

Reply via email to