apt-add-repository with non-existing or mistyped user name results in exceptions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Using a non-existing Launchpad user as an example. The same error messages will occur if a user mistypes the ppa username when attempting to add the repo.
$ sudo apt-add-repository ppa:doesntexist
Traceback (most recent call last):
File "/usr/lib/
lp_page = urllib.
File "/usr/lib/
return opener.open(url, data, timeout)
File "/usr/lib/
response = meth(req, response)
File "/usr/lib/
'http', request, response, code, msg, hdrs)
File "/usr/lib/
return self._call_
File "/usr/lib/
result = func(*args)
File "/usr/lib/
raise HTTPError(
urllib.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
ret = get_ppa_
File "/usr/lib/
return get_info_
File "/usr/lib/
return _get_https_
File "/usr/lib/
raise PPAException("Error reading %s: %s" % (lp_url, reason), e)
softwarepropert
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
lp_page = urllib.
File "/usr/lib/
return opener.open(url, data, timeout)
File "/usr/lib/
response = meth(req, response)
File "/usr/lib/
'http', request, response, code, msg, hdrs)
File "/usr/lib/
return self._call_
File "/usr/lib/
result = func(*args)
File "/usr/lib/
raise HTTPError(
urllib.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/
shortcut = shortcut_
File "/usr/lib/
ret = factory(shortcut)
File "/usr/lib/
return PPAShortcutHand
File "/usr/lib/
info = get_ppa_
File "/usr/lib/
_get_
File "/usr/lib/
lp_user = get_info_
File "/usr/lib/
return _get_https_
File "/usr/lib/
raise PPAException("Error reading %s: %s" % (lp_url, reason), e)
softwarepropert
If I attempt to add a PPA entering a real username but a repo which doesn't belong to that user, I get a list of which repos that user provides. I realize it is not possible to list every existing username on Launchpad, but I believe this should be handled more gracefully. For instance the user may get a simple error message saying the user 'doesntexist' is not on Launchpad with suggestions to doublecheck the name for potential typos.
(See also bug 1405950 which is unrelated but similar)
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: software-
ProcVersionSign
Uname: Linux 3.16.0-28-generic x86_64
ApportVersion: 2.15.1-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Dec 27 15:16:32 2014
InstallationDate: Installed on 2014-12-19 (7 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20141211)
PackageArchitec
SourcePackage: software-properties
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in software-properties (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
I am no longer able to reproduce this issue with software-properties 0.96.13 on Ubuntu Wily. I believe this was a duplicate of bug 1372086.