Red Hat Bugzilla – Bug 504377
Special characters cause internal system error
Last modified: 2009-08-21 21:01:25 EDT
Description of problem:
An internal system error appears when searching for a term with special characters such as German umlauts (ä, ö, ü, ...)
Version-Release number of selected component (if applicable):
gnome-packagekit-0.3.14-1.fc10.i386 (as well as later builds)
Steps to Reproduce:
1. Enter a search term with at least one special character in the search fild
2. Press "Find"
Error Type: <type 'exceptions.TypeError'>
Error Value: 'in <string>' requires string as left operand
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2316, in <module>
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2313, in main
File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 600, in dispatcher
File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 567, in dispatch_command
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 332, in search_name
self._do_search(searchlist, filters, key)
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 293, in _do_search
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 270, in _do_meta_package_search
if key in grpid:
Just works (TM)
Excellent bug, thanks for reporting. I've fixed this upstream:
Author: Richard Hughes <firstname.lastname@example.org>
Date: Sat Jun 6 11:14:23 2009 +0100
Convert non-ASCII text to unicode for spawned backends. Fixes rh#504377
Searching for mü now finds the Münster Curry Compiler without an error.
Do you want me to push this for F11, or can it wait for 0.4.9 (three weeks time)?
(In reply to comment #1)
> Excellent bug, thanks for reporting.
I'm flattered. Thanks for the quick fix.
> Searching for mü now finds the Münster Curry Compiler without an error.
As a citizen of the town of Münster I appreciate this very much. ;)
> Do you want me to push this for F11, or can it wait for 0.4.9 (three weeks
0.4.9 is fine for me.
PackageKit-0.4.9-1.fc11 has been submitted as an update for Fedora 11.
PackageKit-0.4.9-1.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.