Issue126

Project smart
Title smart search fails
Priority bug Status resolved
Superseder Find / Search for description ONLY crashes., [PATCH] Fixed query with empty description/summary, search crashes with TypeError, info crashes with AttrributeError
View: 125

View: 64

View: 68
Nosy List BBlack, netmask
Assigned To Topics

Created on 2006-02-21.18:12:11 by BBlack, last changed 2006-02-22.02:04:46 by netmask.

Messages
msg413 (view) Author: netmask Date: 2006-02-22.02:04:46
Closing.
msg412 (view) Author: netmask Date: 2006-02-22.02:04:28
Sorry, I know it's not your fault, but this bug is repeating itself.

Next time, please, search for similar bugs before posting. Thanks in advance.

Problem solved on issue68, notes pointed on issue125, patch provided on issue64.
msg411 (view) Author: BBlack Date: 2006-02-21.18:12:09
Using "smart search" works fine, as long as you didn't execute any other action
like "smart update" or installing a package.

It's reproducable and everytime you already did something else the following
error occurs:

Traceback (most recent call last):
  File "/usr/bin/smart", line 194, in ?
    main(sys.argv[1:])
  File "/usr/bin/smart", line 167, in main
    exitcode = iface.run(opts.command, opts.argv)
  File "/usr/lib/python2.4/site-packages/smart/interface.py", line 53, in run
    result = _command.main(self._ctrl, opts)
  File "/usr/lib/python2.4/site-packages/smart/commands/query.py", line 283, in main
    if pattern.search(info.getDescription()):
TypeError: expected string or buffer

But searching in the GUI works fine, even when the command line doesn't work
anymore. Any ideas about that? Using the GUI is fine as long as the system isn't
a server! :-)

Thanks in advance for your help!
History
Date User Action Args
2006-02-22 02:04:47netmasksetstatus: chatting -> resolved
messages: + msg413
2006-02-22 02:04:29netmasksetstatus: unread -> chatting
messages: + msg412
superseder: + [PATCH] Fixed query with empty description/summary, search crashes with TypeError, info crashes with AttrributeError, Find / Search for description ONLY crashes.
nosy: + netmask
2006-02-21 18:12:14BBlackcreate