python-httplib2 cannot make https connection via http proxy

Bug #373589 reported by Alexander Lelyakin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
httplib2
Unknown
Unknown
python-httplib2 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: python-httplib2

There is a bug (probably copy/paste error) in HTTPSConnectionWithTimeout.connect method of python httplib2 module

Package python-httplib2, version 0.4.0-0ubuntu2
Release Ubuntu 9.04

Around line 749: of file /var/lib/python-support/python2.6/httplib2/__init__.py
Instead of:
        if self.proxy_info and self.proxy_info.isgood():
            self.sock.setproxy(*self.proxy_info.astuple())
            sock.setproxy(*self.proxy_info.astuple())
        else:
Should be:
        if self.proxy_info and self.proxy_info.isgood():
            sock = socks.socksocket(socket.AF_INET, socket.SOCK_STREAM)
            sock.setproxy(*self.proxy_info.astuple())
        else:
As a result in such a situation:
 p=httplib2.ProxyInfo(socks.PROXY_TYPE_HTTP,'proxy_host',proxy_port)
 h=httplib2.HTTPSConnectionWithTimeout('some_host',proxy_info=p)
 h.connect()
exception occurs.

I have already submitted this error to httplib2 support.

James Westby (james-w)
Changed in python-httplib2 (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Fixed in Debian, will be imported in Lucid soon.

Changed in python-httplib2 (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-httplib2 - 0.5.0-1

---------------
python-httplib2 (0.5.0-1) unstable; urgency=low

  * New upstream release (Closes: #461200) (LP: #373589).
  * debian/compat:
    - Bump compat level to 7.
  * debian/control:
    - New Maintainer (Closes: #542786).
    - Add Debian Python Modules Team to Uploaders.
    - Switch to python section to match override.
    - Remove cdbs from Build-Depends.
    - Bump debhelper required version to 7.2.18.
    - Do not build-depend on python-all-dev, depend on python instead.
    - Move python-support to Build-Depends-Indep.
    - Bump Standards-Version to 3.8.3.
    - Add Homepage field.
    - Add XS-Python-Version field.
    - Add Vcs-* fields to store Debian packaging.
    - Set Architecture to all.
    - Remove ${shlibs:Depends} from Depends.
    - Fix spelling errors in package description.
  * debian/copyright:
    - Adjust copyright informations.
  * debian/README.Debian:
    - Removed, already provided by upstream README.
  * debian/pycompat:
    - Removed, useless.
  * debian/rules:
    - Switch to debhelper 7.
  * debian/watch:
    - Provide a watch file.
 -- Luca Falavigna <email address hidden> Wed, 11 Nov 2009 13:01:13 +0000

Changed in python-httplib2 (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.