add-apt-repository crashes when I enter a PPA that doesn't exist

Bug #912250 reported by Sergey "Shnatsel" Davidoff
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Trying to add a PPA that doesn't exist makes add-apt-repository print lots of errors and a backtrace. It should provide helpful information to the user instead, e.g. tell the user that the ppa doesn't seem to exist and to check if it's typed correctly.

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: python-software-properties 0.81.10
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic i686
ApportVersion: 1.23-0ubuntu3
Architecture: i386
CasperVersion: 1.287
Date: Thu Jan 5 13:20:47 2012
ExecutablePath: /usr/bin/add-apt-repository
InterpreterPath: /usr/bin/python2.7
LiveMediaBuild: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/add-apt-repository ppa:shnatsel/eidete
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/add-apt-repository', 'ppa:shnatsel/eidete']
SourcePackage: software-properties
Title: add-apt-repository crashed with HTTPError in http_error_default(): HTTP Error 404: Not Found
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :
tags: removed: need-duplicate-check
Robert Roth (evfool)
Changed in software-properties (Ubuntu):
status: New → Confirmed
Revision history for this message
Robert Roth (evfool) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better. We appreciate the difficulties you are facing, but this appears to be a "regular" (non-security) bug. I have unmarked it as a security issue since this bug does not show evidence of allowing attackers to cross privilege boundaries nor directly cause loss of data/privacy. Please feel free to report any other bugs you may find.

visibility: private → public
Changed in software-properties (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Winfield Trail (sudowned) wrote :

Is this still an issue? I just tried to reproduce it with the following results:

sudowned@jarrah:~$ sudo add-apt-repository ppa:foobar/foo2bar
Cannot access PPA (https://launchpad.net/api/1.0/~foobar/+archive/foo2bar) to get PPA information, please check your internet connection.

Revision history for this message
Manish Sinha (मनीष सिन्हा) (manishsinha) wrote :

This bug has already been fixed
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/887249

I see you are running 11.10, the fix is in 12.04, please see the patch
https://code.launchpad.net/~manishsinha/software-properties/fix-887249-handle-404-error/+merge/81488
if you want to port it to elementary (I assume Sergey "Shnatsel" Davidoff is an elementary contributor)

Changed in software-properties (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.