Bug 504377 - Special characters cause internal system error
Summary: Special characters cause internal system error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-packagekit
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-05 20:52 UTC by Christoph Wickert
Modified: 2009-08-22 01:01 UTC (History)
3 users (show)

Fixed In Version: 0.4.9-1.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-06-07 09:05:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Christoph Wickert 2009-06-05 20:52:51 UTC
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)

How reproducible:
always

Steps to Reproduce:
1. Enter a search term with at least one special character in the search fild
2. Press "Find"
  
Actual results:
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>
    main()
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2313, in main
    backend.dispatcher(sys.argv[1:])
  File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 600, in dispatcher
    self.dispatch_command(args[0], args[1:])
  File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 567, in dispatch_command
    self.search_name(options, searchterms)
  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
    self._do_meta_package_search(fltlist, key)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 270, in _do_meta_package_search
    if key in grpid:


Expected results:
Just works (TM)

Comment 1 Richard Hughes 2009-06-06 10:17:01 UTC
Excellent bug, thanks for reporting. I've fixed this upstream:

commit e7d7308b28d70aeb1af43cc9a7403c208eaa1778
Author: Richard Hughes <richard>
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)?

Comment 2 Christoph Wickert 2009-06-06 18:40:30 UTC
(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
> time)?  

0.4.9 is fine for me.

Comment 3 Fedora Update System 2009-08-03 14:32:52 UTC
PackageKit-0.4.9-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/PackageKit-0.4.9-1.fc11

Comment 4 Fedora Update System 2009-08-22 01:00:48 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.