#120013 - httplib.py doesn't know how to handle http_proxy with user:pass@URL (original) (raw)

version graph

Reported by: thomas poindessous <poinde_t@epita.fr>

Date: Sat, 17 Nov 2001 22:03:02 UTC

Severity: normal

Found in version 2.1.1-4

Fixed in version python2.1/2.1.1-7

Done: Matthias Klose doko@debian.org

Bug is archived. No further changes may be made.

Forwarded to 120013-forwarded@bugs.debian.org

Display info messages


Report forwarded to debian-bugs-dist@lists.debian.org, Gregor Hoffleit <flight@debian.org>:
Bug#120013; Package python2.1. (full text, mbox, link).


Acknowledgement sent to thomas poindessous <poinde_t@epita.fr>:
New Bug report received and forwarded. Copy sent to Gregor Hoffleit <flight@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

Package: python2.1 Version: 2.1.1-4 Severity: normal

I tried to use reportbug avec an http_proxy variable which looks like: http://user:pass@proxy:3128/

with pass like \jkIoPd{

And I got this error :

Traceback (most recent call last): File "/usr/bin/reportbug", line 1146, in ? main() File "/usr/bin/reportbug", line 628, in main http_proxy) File "/usr/lib/site-python/reportbug_ui_text.py", line 314, in handle_bts_query archived=archived) File "/usr/lib/site-python/debianbts.py", line 575, in get_reports result = get_cgi_reports(package, system, http_proxy, archived) File "/usr/lib/site-python/debianbts.py", line 494, in get_cgi_reports page = urlopen(url, proxies=proxies) File "/usr/lib/site-python/debianbts.py", line 382, in urlopen return _urlopener.open(url) File "/usr/lib/python2.1/urllib.py", line 176, in open return getattr(self, name)(url) File "/usr/lib/python2.1/urllib.py", line 277, in open_http h = httplib.HTTP(host) File "/usr/lib/python2.1/httplib.py", line 663, in init self._conn = self._connection_class(host, port) File "/usr/lib/python2.1/httplib.py", line 342, in init self._set_hostport(host, port) File "/usr/lib/python2.1/httplib.py", line 348, in _set_hostport port = int(host[i+1:]) ValueError: invalid literal for int(): \jkIoPd{@proxy:3128

But if I use http_proxy=http://10.0.0.1:3128/, it works well.

-- Thomas Poindessous thomas@poindessous.com


Reply sent to Matthias Klose <doko@cs.tu-berlin.de>:
You have marked Bug as forwarded. (full text, mbox, link).


Message #8 received at 120013-forwarded@bugs.debian.org (full text, mbox, reply):

forwarded to sf.net (495682):

https://sourceforge.net/tracker/index.php?func=detail&aid=495682&group_id=5470&atid=105470


Reply sent to Matthias Klose <doko@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to thomas poindessous <poinde_t@epita.fr>:
Bug acknowledged by developer. (full text, mbox, link).


Message #13 received at 120013-close@bugs.debian.org (full text, mbox, reply):

We believe that the bug you reported is fixed in the latest version of python2.1, which has been installed in the Debian FTP archive:

idle-python2.1_2.1.1-7_all.deb to pool/main/p/python2.1/idle-python2.1_2.1.1-7_all.deb idle_2.1.1-7_all.deb to pool/main/p/python2.1/idle_2.1.1-7_all.deb python-dev_2.1.1-7_all.deb to pool/main/p/python2.1/python-dev_2.1.1-7_all.deb python-elisp_2.1.1-7_all.deb to pool/main/p/python2.1/python-elisp_2.1.1-7_all.deb python-examples_2.1.1-7_all.deb to pool/main/p/python2.1/python-examples_2.1.1-7_all.deb python-gdbm_2.1.1-7_all.deb to pool/main/p/python2.1/python-gdbm_2.1.1-7_all.deb python-mpz_2.1.1-7_all.deb to pool/main/p/python2.1/python-mpz_2.1.1-7_all.deb python-tk_2.1.1-7_all.deb to pool/main/p/python2.1/python-tk_2.1.1-7_all.deb python2.1-dev_2.1.1-7_i386.deb to pool/main/p/python2.1/python2.1-dev_2.1.1-7_i386.deb python2.1-elisp_2.1.1-7_all.deb to pool/main/p/python2.1/python2.1-elisp_2.1.1-7_all.deb python2.1-examples_2.1.1-7_all.deb to pool/main/p/python2.1/python2.1-examples_2.1.1-7_all.deb python2.1-gdbm_2.1.1-7_i386.deb to pool/main/p/python2.1/python2.1-gdbm_2.1.1-7_i386.deb python2.1-mpz_2.1.1-7_i386.deb to pool/main/p/python2.1/python2.1-mpz_2.1.1-7_i386.deb python2.1-tk_2.1.1-7_i386.deb to pool/main/p/python2.1/python2.1-tk_2.1.1-7_i386.deb python2.1-xmlbase_2.1.1-7_i386.deb to pool/main/p/python2.1/python2.1-xmlbase_2.1.1-7_i386.deb python2.1_2.1.1-7.diff.gz to pool/main/p/python2.1/python2.1_2.1.1-7.diff.gz python2.1_2.1.1-7.dsc to pool/main/p/python2.1/python2.1_2.1.1-7.dsc python2.1_2.1.1-7_i386.deb to pool/main/p/python2.1/python2.1_2.1.1-7_i386.deb python_2.1.1-7_all.deb to pool/main/p/python2.1/python_2.1.1-7_all.deb

A summary of the changes between this version and the previous one is attached.

Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 120013@bugs.debian.org, and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software pp. Matthias Klose doko@debian.org (supplier of updated python2.1 package)

(This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@debian.org)

-----BEGIN PGP SIGNED MESSAGE-----

Format: 1.7 Date: Sun, 30 Dec 2001 17:06:06 +0100 Source: python2.1 Binary: python-dev python python-gdbm python2.1-examples python2.1-gdbm idle python2.1-xmlbase python2.1-mpz idle-python2.1 python-tk python2.1-elisp python-mpz python2.1 python-examples python-elisp python2.1-dev python2.1-tk Architecture: source all i386 Version: 2.1.1-7 Distribution: unstable Urgency: medium Maintainer: Gregor Hoffleit flight@debian.org Changed-By: Matthias Klose doko@debian.org Description: idle - An IDE for Python using Tkinter (default version) idle-python2.1 - An IDE for Python (v2.1) using Tkinter python - An interactive object-oriented scripting language (default versio python-dev - Header files and a static library for Python (default) python-elisp - Emacs-lisp python-mode for the Python language (default version) python-examples - Examples for the scripting language Python (default version) python-gdbm - GNU dbm database support for Python (default version) python-mpz - Multiple-precision arithmetic support for Python (default version python-tk - Tkinter - Writing Tk applications with Python (default version) python2.1 - An interactive object-oriented scripting language (version 2.1) python2.1-dev - Header files and a static library for Python (v2.1) python2.1-elisp - Emacs-lisp python-mode for the scripting language Python (v2.1) python2.1-examples - Examples for the scripting language Python (v2.1) python2.1-gdbm - GNU dbm database support for Python (v2.1) python2.1-mpz - Multiple-precision arithmetic support for Python (v2.1) python2.1-tk - Tkinter - Writing Tk applications with Python (v2.1) python2.1-xmlbase - XML support included in Python (v2.1) Closes: 35554 40891 84340 120013 125785 126383 126657 126813 127040 Changes: python2.1 (2.1.1-7) unstable; urgency=medium .

-----BEGIN PGP SIGNATURE----- Version: 2.6.3ia Charset: noconv Comment: Requires PGP version 2.6 or later.

iQEVAwUBPC8/5QuDzMCIcnEhAQGgyAf/Zfxqx0y/2HlAiT2DElLXhWuzjNu3/wz/ MHDIfuuyW1B47mQH7Ye4yDu8bmJuIYU2nfA01jTW7TfGgxjzv0Iqb8dh3DITU597 zZiKRAN2CjfzRaS5SfCZyP7hXMmxdb2dcD49Tltx2E5xYwGC4F7+MuCVFFcHioMK X5OnoR59AGVTnwp/EM2eGDJHhrqYJkmNjYOr/Oq6RJ8SV58/sw3TfkQXeMUZ7E1Q 32oKXtOU7UvPLc4r4jgxFcZ6B9c+k7rRgw6tOiJy5vi9vt6l9148I24e4ua7NkoR vsMV+Pc1427ycpyrF8+LgwIFEMzUjHECgZx3/jUc+xtmS0nq5s5soQ== =mR3E -----END PGP SIGNATURE-----


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified:Wed Apr 8 23:09:01 2026; Machine Name:buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.