aptd crashes when PPAs have non-ascii descriptions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Aptdaemon |
Fix Released
|
Undecided
|
Unassigned | ||
aptdaemon (Ubuntu) |
Fix Released
|
Medium
|
Colin Watson | ||
Precise |
Fix Released
|
Medium
|
Colin Watson |
Bug Description
[Impact]
When someone adds a PPA with a description that contains non-ascii letters, she later on gets apport dialogs about aptd crashes:
Title: <type 'exceptions.
[Test Case]
$ sudo add-apt-repository ppa:ts.sch.gr
$ sudo apt-get update
# Just ensure that there's at least one update coming from that PPA.
# E.g. install the numlockx package from Precise, there's then an
# update in that PPA:
$ sudo apt-get install numlockx=1.2-2
$ sudo apt-get update
$ update-manager
No need to update anything, it's enough to select numlockx in the update manager so that the PPA description is pulled.
Then wait approximately 30 seconds for apport to display the crash dialog.
Or, ls /var/crash/*apt*
[Regression Potential]
There are lots of dbus.String() calls in aptdaemon that might trigger similar errors [which are likely a red herring --cjwatson], but this case should be OK now, both for python2 and python3.
[Original bug report]
No noticable problems - this message came up during boot
ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: aptdaemon 0.43+bzr805-
ProcVersionSign
Uname: Linux 3.2.0-23-
NonfreeKernelMo
Annotation: Search failed
ApportVersion: 2.0.1-0ubuntu1
Architecture: i386
Date: Tue Apr 10 07:45:48 2012
ExecutablePath: /usr/sbin/aptd
PackageArchitec
SourcePackage: aptdaemon
Title: <type 'exceptions.
TransactionDepends: [[], [], [], [], [], [], []]
TransactionErro
TransactionKwargs: {'filters': [u'unknown']}
TransactionLocale: en_GB.UTF-8
TransactionOutput:
TransactionPack
TransactionRole: role-pk-query
UpgradeStatus: Upgraded to precise on 2012-02-26 (44 days ago)
Related branches
- Colin Watson: Approve
-
Diff: 11606 lines (+11326/-22)25 files modified.pc/.quilt_patches (+1/-0)
.pc/.quilt_series (+1/-0)
.pc/.version (+1/-0)
.pc/applied-patches (+5/-0)
.pc/fix-lp-900982.patch/aptdaemon/enums.py (+698/-0)
.pc/fix-lp-932581.patch/aptdaemon/pkcompat.py (+2937/-0)
.pc/fix-lp-971748.patch/aptdaemon/networking.py (+262/-0)
.pc/fix-lp-971748.patch/aptdaemon/pkcompat.py (+2940/-0)
.pc/fix-lp-981124.patch/aptdaemon/client.py (+1697/-0)
.pc/fix_gettext_return_value_type.patch/aptdaemon/core.py (+2201/-0)
.pc/fix_gettext_return_value_type.patch/aptdaemon/utils.py (+88/-0)
aptdaemon/client.py (+8/-6)
aptdaemon/core.py (+20/-8)
aptdaemon/enums.py (+1/-1)
aptdaemon/networking.py (+11/-4)
aptdaemon/pkcompat.py (+10/-2)
aptdaemon/utils.py (+7/-1)
debian/changelog (+29/-0)
debian/patches/fix-lp-900982.patch (+19/-0)
debian/patches/fix-lp-932581.patch (+20/-0)
debian/patches/fix-lp-971748.patch (+87/-0)
debian/patches/fix-lp-981124.patch (+44/-0)
debian/patches/fix_gettext_return_value_type.patch (+171/-0)
debian/patches/series (+5/-0)
tests/regressions/test_lp768691.py (+63/-0)
tags: | removed: need-duplicate-check |
visibility: | private → public |
Changed in aptdaemon (Ubuntu): | |
importance: | Undecided → Medium |
Changed in aptdaemon (Ubuntu): | |
status: | Confirmed → Fix Committed |
summary: |
- <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte - 0xc3 in position 24: ordinal not in range(128) + aptd crashes when PPAs have non-ascii descriptions |
Changed in aptdaemon (Ubuntu Precise): | |
assignee: | nobody → Colin Watson (cjwatson) |
Changed in aptdaemon (Ubuntu): | |
assignee: | nobody → Colin Watson (cjwatson) |
Changed in aptdaemon (Ubuntu Precise): | |
importance: | Undecided → Medium |
status: | New → Triaged |
description: | updated |
description: | updated |
Changed in aptdaemon (Ubuntu Precise): | |
status: | Triaged → In Progress |
Changed in aptdaemon: | |
status: | New → Fix Released |
tags: |
added: verification-done removed: verification-needed |
Status changed to 'Confirmed' because the bug affects multiple users.