Ticket #199 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Internal error on search: 'list' object has no attribute 'split'

Reported by: tacker Assigned to: athomas
Priority: normal Component: RepoSearchPlugin
Severity: major Keywords:
Cc: Trac Release:

Description

Python traceback

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 206, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 142, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 110, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/trac/Search.py", line 178, in process_request
    results += list(source.get_search_results(req, terms, filters))
  File "build/bdist.linux-i686/egg/tracreposearch/search.py", line 67, in get_search_results
AttributeError: 'list' object has no attribute 'split'

My config:

[components]
tracreposearch.* = enabled

[repo-search]
include = *.php:*.tpl

Attachments

Change History

03/06/06 21:57:03 changed by athomas

  • status changed from new to assigned.

That is very strange. What was the search term you used?

03/07/06 06:13:11 changed by tacker

It happens with "test" as search string. Trac version is r2954.

03/08/06 10:00:59 changed by cboos

The same issue can happen with any plugin implementing the ISearchSource interface, which changed in [trac 2940]: terms is now a list.

See r459 for an example of how to fix it.

03/10/06 19:52:41 changed by athomas

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [476]) * Updated for trunk changes, fixes #199


Add/Change #199 (Internal error on search: 'list' object has no attribute 'split')




Change Properties
Action