UnicodeDecodeError in add_repo_add_key_and_install_app when a appname has special chars in it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-center (Ubuntu) |
Fix Released
|
Medium
|
Gary Lasker | ||
Oneiric |
Won't Fix
|
Medium
|
Gary Lasker | ||
Precise |
Fix Released
|
Medium
|
michael rogan |
Bug Description
[TEST CASE]
Unfortunately, there is currently not a convenient way to test this error condition as it specifically requires an application in the for-purchase archive to contain a unicode character in its name. Currently, no such application is available. However, a unit test that reproduces the error and verifies the fix directly is included in the source code for this version of Software Center (see branch details below), and this has been run at build time.
It is still very useful to test for regressions as follows:
1. Install and launch the version of software-center in precise-proposed.
2. Click the down arrow next for "All Software" and select the "For Purchase" entry.
3. Navigate in the list and make sure that all of the titles are displayed correctly. View the details view for various items and verify the titles there as well.
[REGRESSION POTENTIAL]
This is a fix that simply corrects a unicode decode error in a debug log statement, so the risk of regression is negligible.
---
The esteemed davmor2 discovered a new UnicodeDecodeError while testing a new app for the For Purchase section. This application appears to be the first one we've deployed For Purchase that uses a unicode character in its title, which explains why we have not seen this particular one before.
The title of the associated application is "Linux Shell 01 - Manual Práctico del Shell".
Further details from davmor2:
Bug Description:
A recent magazine came through with a unicode character in the title of the application and USC/SCA combo was unable to handle it.
Version:
n/a
OS:
64bit Oneiric
USC Version:
5.0.4
Steps To Reproduce:
1. Goto myapps
2. Create an app with a unicode title
3. Myapps will publish this
4. USC will fail to download/install this
Expected Results:
I expect to be able to create an app and publish it. That or we need to document that only non unicode characters may be applied to a title.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: software-center 5.0.4
ProcVersionSign
Uname: Linux 3.0.0-15-generic x86_64
NonfreeKernelMo
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Tue Jan 24 12:52:52 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
PackageArchitec
ProcEnviron:
LANGUAGE=en_GB:en
PATH=(custom, no user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SoftwareCenterLog:
2012-01-24 12:41:14,289 - softwarecenter.
2012-01-24 12:41:14,355 - softwarecenter.
2012-01-24 12:41:15,186 - softwarecenter.
2012-01-24 12:42:56,237 - softwarecenter.
SourcePackage: software-center
UpgradeStatus: No upgrade log present (probably fresh install)
Here is the stacktrace:
Traceback (most recent call last):
File "/usr/share/
model.
File "/usr/share/
if self[(i,)][0]: continue
File "/usr/lib/
raise IndexError("could not find tree path '%s'" % key)
IndexError: could not find tree path '197'
Traceback (most recent call last):
File "/usr/share/
model.
File "/usr/share/
if self[(i,)][0]: continue
File "/usr/lib/
raise IndexError("could not find tree path '%s'" % key)
IndexError: could not find tree path '199'
Traceback (most recent call last):
File "/usr/share/
model.
File "/usr/share/
if self[(i,)][0]: continue
File "/usr/lib/
raise IndexError("could not find tree path '%s'" % key)
IndexError: could not find tree path '201'
Traceback (most recent call last):
File "/usr/lib/
result = gen.send(result)
File "/usr/share/
app))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 26: ordinal not in range(128)
Related branches
- software-store-developers: Pending requested
-
Diff: 153 lines (+32/-9)7 files modifiedsoftwarecenter/backend/installbackend_impl/aptd.py (+2/-2)
softwarecenter/db/application.py (+2/-1)
softwarecenter/ui/gtk3/panes/availablepane.py (+4/-2)
softwarecenter/ui/gtk3/panes/installedpane.py (+2/-1)
softwarecenter/ui/gtk3/panes/softwarepane.py (+2/-1)
softwarecenter/ui/gtk3/views/appdetailsview.py (+3/-2)
test/test_aptd.py (+17/-0)
- software-store-developers: Pending requested
-
Diff: 69 lines (+22/-3)2 files modifiedsoftwarecenter/backend/installbackend_impl/aptd.py (+4/-3)
test/test_aptd.py (+18/-0)
Changed in software-center (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Gary Lasker (gary-lasker) |
description: | updated |
Changed in software-center (Ubuntu Oneiric): | |
status: | New → Triaged |
importance: | Undecided → High |
importance: | High → Medium |
summary: |
- UnicodeDecodeError in add_repo_add_key_and_install_app + UnicodeDecodeError in add_repo_add_key_and_install_app when a appname + has special chars in it |
Changed in software-center (Ubuntu): | |
milestone: | none → precise-updates |
tags: | added: ca-escalated |
Changed in software-center (Ubuntu): | |
status: | Triaged → In Progress |
Changed in software-center (Ubuntu Oneiric): | |
status: | Triaged → In Progress |
assignee: | nobody → Gary Lasker (gary-lasker) |
milestone: | none → oneiric-updates |
Changed in software-center (Ubuntu Precise): | |
status: | New → In Progress |
importance: | Undecided → Medium |
description: | updated |
Changed in software-center (Ubuntu Oneiric): | |
status: | In Progress → Fix Committed |
Changed in software-center (Ubuntu): | |
milestone: | precise-updates → none |
Changed in software-center (Ubuntu Precise): | |
milestone: | none → precise-updates |
assignee: | nobody → Gary Lasker (gary-lasker) |
tags: | removed: ca-escalated |
Changed in software-center (Ubuntu Precise): | |
assignee: | Gary Lasker (gary-lasker) → michael rogan (michaelnes) |
This looks very similar to bug #871088 but that got fixed in 5.0 (r2443.2.25) so it either a different incarnation or a regression.