Public bug reported:
Binary package hint: python-urlgrabber
STEPS TO REPRODUCE:
=====================
$ python
>>> from urlgrabber import urlopen
>>> foo = urlopen("http://username:[email protected]")
Traceback (most recent call last):
File "test.py", line 2, in <module>
foo = urlopen("http://username:[email protected]")
File "/usr/lib/pymodules/python2.6/urlgrabber/grabber.py", line 605, in
urlopen
return default_grabber.urlopen(url, **kwargs)
File "/usr/lib/pymodules/python2.6/urlgrabber/grabber.py", line 884, in
urlopen
return self._retry(opts, retryfunc, url)
File "/usr/lib/pymodules/python2.6/urlgrabber/grabber.py", line 845, in _retry
r = apply(func, (opts,) + args, {})
File "/usr/lib/pymodules/python2.6/urlgrabber/grabber.py", line 883, in
retryfunc
return URLGrabberFileObject(url, filename=None, opts=opts)
File "/usr/lib/pymodules/python2.6/urlgrabber/grabber.py", line 1001, in
__init__
self._do_open()
File "/usr/lib/pymodules/python2.6/urlgrabber/grabber.py", line 1072, in
_do_open
fo, hdr = self._make_request(req, opener)
File "/usr/lib/pymodules/python2.6/urlgrabber/grabber.py", line 1172, in
_make_request
fo = opener.open(req)
File "/usr/lib/python2.6/urllib2.py", line 397, in open
response = meth(req, response)
File "/usr/lib/python2.6/urllib2.py", line 510, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.6/urllib2.py", line 429, in error
result = self._call_chain(*args)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 855, in http_error_401
url, req, headers)
File "/usr/lib/python2.6/urllib2.py", line 833, in http_error_auth_reqed
return self.retry_http_basic_auth(host, req, realm)
File "/usr/lib/python2.6/urllib2.py", line 843, in retry_http_basic_auth
return self.parent.open(req, timeout=req.timeout)
File "/usr/lib/python2.6/urllib2.py", line 397, in open
response = meth(req, response)
File "/usr/lib/python2.6/urllib2.py", line 510, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.6/urllib2.py", line 429, in error
result = self._call_chain(*args)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 855, in http_error_401
url, req, headers)
[[[ REPEATS A LOT OF TIMES ]]]
File "/usr/lib/python2.6/urllib2.py", line 855, in http_error_401
url, req, headers)
File "/usr/lib/python2.6/urllib2.py", line 833, in http_error_auth_reqed
return self.retry_http_basic_auth(host, req, realm)
File "/usr/lib/python2.6/urllib2.py", line 843, in retry_http_basic_auth
return self.parent.open(req, timeout=req.timeout)
File "/usr/lib/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib/pymodules/python2.6/urlgrabber/keepalive.py", line 332, in
http_open
return self.do_open(req)
File "/usr/lib/pymodules/python2.6/urlgrabber/keepalive.py", line 237, in
do_open
self._start_transaction(h, req)
File "/usr/lib/pymodules/python2.6/urlgrabber/keepalive.py", line 320, in
_start_transaction
h.endheaders()
File "/usr/lib/python2.6/httplib.py", line 904, in endheaders
self._send_output()
File "/usr/lib/python2.6/httplib.py", line 776, in _send_output
self.send(msg)
File "/usr/lib/python2.6/httplib.py", line 735, in send
self.connect()
File "/usr/lib/python2.6/httplib.py", line 716, in connect
self.timeout)
File "/usr/lib/python2.6/socket.py", line 504, in create_connection
sock = socket(af, socktype, proto)
RuntimeError: maximum recursion depth exceeded
EXPECTED RESULTS:
==================
>>>
(i.e. no error... able to continue with:
>>> data = foo.read()
>>> foo.close()
VITOL STATISTICS
===============
Binary package: python-urlgrabber 3.1.0-5ubuntu1
Source Package: urlgrabber 3.1.0-5ubuntu1
Ubuntu release: Ubuntu 10.04.1 LTS
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: python-urlgrabber 3.1.0-5ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-26.48-generic 2.6.32.24+drm33.11
Uname: Linux 2.6.32-26-generic i686
Architecture: i386
Date: Sun Dec 26 21:31:51 2010
InstallationMedia: Kubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427)
PackageArchitecture: all
ProcEnviron:
LANGUAGE=
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: urlgrabber
** Affects: urlgrabber (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-bug i386 lucid
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/694662
Title:
urlgrabber crashes with username and password for HTTP Authentication
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs