[Bug 624751] Re: urllib2.urlopen fails to parse the URI when user:password is specified but no port - update-manager fails to download changelog
Felix Möller
felix at derklecks.de
Mon Sep 26 21:59:58 UTC 2011
I just hit this issue with Oneiric. Would be really cool to have this
fixed.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python2.6 in Ubuntu.
https://bugs.launchpad.net/bugs/624751
Title:
urllib2.urlopen fails to parse the URI when user:password is specified
but no port - update-manager fails to download changelog
Status in “python2.6” package in Ubuntu:
Won't Fix
Status in “update-manager” package in Ubuntu:
Triaged
Bug description:
Binary package hint: update-manager
update-manager encountered unhandled exception when attempting to
download changelog for the ubuntu-private-fonts package. This package
comes from a private ppa. Private PPAs have different URL entry with
user:pass at ... that confuses some of update-manager code.
Unhandled exception in thread started by <bound method MyCache.get_news_and_changelog of <UpdateManager.Core.MyCache.MyCache object at 0x2955590>>
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/UpdateManager/Core/MyCache.py", line 247, in get_news_and_changelog
self.get_changelog(name)
File "/usr/lib/python2.6/dist-packages/UpdateManager/Core/MyCache.py", line 271, in get_changelog
changelog = self._get_changelog_or_news(name, "changelog", False, changelogs_uri)
File "/usr/lib/python2.6/dist-packages/UpdateManager/Core/MyCache.py", line 193, in _get_changelog_or_news
changelog = urllib2.urlopen(uri)
File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, 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/python2.6/urllib2.py", line 1169, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.6/urllib2.py", line 1107, in do_open
h = http_class(host, timeout=req.timeout) # will parse host:port
File "/usr/lib/python2.6/httplib.py", line 1101, in __init__
HTTPConnection.__init__(self, host, port, strict, timeout)
File "/usr/lib/python2.6/httplib.py", line 657, in __init__
self._set_hostport(host, port)
File "/usr/lib/python2.6/httplib.py", line 682, in _set_hostport
raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
httplib.InvalidURL: nonnumeric port: 'XXXXXXXXXXXXXXXXXX at private-ppa.launchpad.net'
Note, above I replaced the actual password with 'XXX' sequence
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: update-manager 1:0.134.10
ProcVersionSignature: Ubuntu 2.6.32-24.42-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Thu Aug 26 17:53:24 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
PackageArchitecture: all
ProcEnviron:
PATH=(custom, user)
LANG=pl_PL.utf8
SHELL=/bin/bash
SourcePackage: update-manager
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/624751/+subscriptions
More information about the foundations-bugs
mailing list