[Bug 362937] New: python-urlgrabber http url parsing error
https://bugzilla.novell.com/show_bug.cgi?id=362937 Summary: python-urlgrabber http url parsing error Product: openSUSE 11.0 Version: Alpha 2 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: cthiel@novell.com ReportedBy: mmarek@novell.com QAContact: qa@suse.de Found By: --- $ urlgrabber http://user@example.com/ Traceback (most recent call last): File "/usr/bin/urlgrabber", line 124, in <module> main() File "/usr/bin/urlgrabber", line 120, in main filename = urlgrab(url,filename=file,**kwargs) File "/usr/lib64/python2.5/site-packages/urlgrabber/grabber.py", line 595, in urlgrab return default_grabber.urlgrab(url, filename, **kwargs) File "/usr/lib64/python2.5/site-packages/urlgrabber/grabber.py", line 893, in urlgrab (url,parts) = opts.urlparser.parse(url, opts) File "/usr/lib64/python2.5/site-packages/urlgrabber/grabber.py", line 664, in parse parts = self.process_http(parts) File "/usr/lib64/python2.5/site-packages/urlgrabber/grabber.py", line 692, in process_http auth_handler.add_password(None, host, user, password) UnboundLocalError: local variable 'user' referenced before assignment vs $ curl -v http://user@example.com/ * About to connect() to example.com port 80 (#0) * Trying 208.77.188.166... connected * Connected to example.com (208.77.188.166) port 80 (#0) * Server auth using Basic with user 'user'
GET / HTTP/1.1 Authorization: Basic dXNlcjo= User-Agent: curl/7.18.0 (x86_64-suse-linux-gnu) libcurl/7.18.0 OpenSSL/0.9.8g zlib/1.2.3 libidn/1.4 Host: example.com Accept: */*
< HTTP/1.1 200 OK .. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=362937
User cthiel@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=362937#c1
Christoph Thiel
participants (1)
-
bugzilla_noreply@novell.com