REGRESSION: crash in cell renderer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-center (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
NOTE: This fix was actually released in software-center 5.2.2.1, but due to a copy error the changelog entry appears for this release too.
SRU TEST CASE:
1. Update to the version of software-center in precise-proposed.
2. Launch Ubuntu Software Center from a terminal window as shown:
$ software-center
3. Navigate and view the details page for a few different packages. Choose packages from different categories, etc.
4. Verify that crash stacktrace shown below never appears in the terminal window.
SRU REGRESSION POTENTIAL:
Regression risk is negligible. This is a single line fix that checks for a zero-length string before calling capitalize() on it, and this prevents the crash reported in this bug.
NOTE also that since this fix has been released in Precise, the number of occurrances has dropped dramatically on errors.ubuntu.com.
---
From errors.ubuntu.com , this looks like a regression in the new capitalize code:
Traceback (most recent call last):
File "/usr/share/
is_rtl)
File "/usr/share/
layout.
File "/usr/share/
summary = capitalize_
File "/usr/share/
if string[0].isalpha() and not string[
IndexError: string index out of range
Related branches
- Natalia Bidart: Approve
- Michael Vogt (community): Needs Resubmitting
-
Diff: 25 lines (+3/-1)2 files modifiedsoftwarecenter/utils.py (+1/-1)
test/test_utils.py (+2/-0)
description: | updated |
description: | updated |
See:
software-center 5.2.2