Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-458

Use HTTPS CDN URIs for Rackspace Cloud Files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.14.0-beta3
    • None
    • Storage
    • None

    Description

      I found another patch in my collection, where I had patched the Rackspace storage driver to use the HTTPS CDN URI.

      I'm unsure if it may be best to have this as an option for storage drivers, but if this option is added, it will also need to be implemented for the other storage drivers. I would like some advice on this.

      The patch that hard codes it to use HTTPS URIs always for the CDN, as a 1-line change (ie: without the settings proposed above):

      -------------------- libcloud/storage/drivers/cloudfiles.py --------------------
      index 1502a33..6e7f931 100644
      @@ -273,7 +273,7 @@ class CloudFilesStorageDriver(StorageDriver, OpenStackDriverMixin):
                                                  cdn_request=True)
       
               if response.status == httplib.NO_CONTENT:
      -            cdn_url = response.headers['x-cdn-uri']
      +            cdn_url = response.headers['x-cdn-ssl-uri']
                   return cdn_url
               elif response.status == httplib.NOT_FOUND:
                   raise ContainerDoesNotExistError(value='',
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              micolous Michael Farrell
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: