You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "Nathan A. Ferch (JIRA)" <ji...@apache.org> on 2015/07/14 00:56:05 UTC

[jira] [Created] (LIBCLOUD-721) raw connections don't work with HTTP proxies

Nathan A. Ferch created LIBCLOUD-721:
----------------------------------------

             Summary: raw connections don't work with HTTP proxies
                 Key: LIBCLOUD-721
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-721
             Project: Libcloud
          Issue Type: Bug
          Components: Storage
            Reporter: Nathan A. Ferch
            Priority: Minor


libcloud seems to have issues when using an HTTP proxy. This bug is triggered by the StorageDriver _upload_object method's use of raw=True.

{noformat}
  File "/home/nf/work/spotify-gceimage/.tox/py27/local/lib/python2.7/site-packages/libcloud/storage/drivers/s3.py", line 448, in upload_object
    storage_class=ex_storage_class)
  File "/home/nf/work/spotify-gceimage/.tox/py27/local/lib/python2.7/site-packages/libcloud/storage/drivers/s3.py", line 836, in _put_object
    headers = response.headers
  File "/home/nf/work/spotify-gceimage/.tox/py27/local/lib/python2.7/site-packages/libcloud/common/base.py", line 253, in headers
    self._headers = lowercase_keys(dict(self.response.getheaders()))
  File "/home/nf/work/spotify-gceimage/.tox/py27/local/lib/python2.7/site-packages/libcloud/common/base.py", line 241, in response
    self.parse_error()
  File "/home/nf/work/spotify-gceimage/.tox/py27/local/lib/python2.7/site-packages/libcloud/storage/drivers/s3.py", line 87, in parse_error
    driver=S3StorageDriver)
libcloud.common.types.LibcloudError: <LibcloudError in <class 'libcloud.storage.drivers.s3.S3StorageDriver'> 'Unknown error. Status code: 503'>
{noformat}

Closer examination of the response reveals that the request is being sent with the host/port of the proxy server, not the destination:

{request}
<p>The following error was encountered while trying to retrieve the URL: <a href="https://127.0.0.1:3128/spotify-gceimage-employeegameday/test-spotify-gceimage-trusty-20150713-1801-review-build-55.tar.gz">https://127.0.0.1:3128/spotify-gceimage-employeegameday/tes
t-spotify-gceimage-trusty-20150713-1801-review-build-55.tar.gz</a></p>
{request}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)