Opened 12 years ago

Closed 12 years ago

#199 closed defect (fixed)

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

Reported by: Markus Tacker Owned by: Alec Thomas
Priority: normal Component: RepoSearchPlugin
Severity: major Keywords:
Cc: Trac Release:


Python traceback

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

My config:

tracreposearch.* = enabled

include = *.php:*.tpl

Attachments (0)

Change History (4)

comment:1 Changed 12 years ago by Alec Thomas

Status: newassigned

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

comment:2 Changed 12 years ago by Markus Tacker

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

comment:3 Changed 12 years ago by Christian Boos

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.

comment:4 Changed 12 years ago by Alec Thomas

Resolution: fixed
Status: assignedclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Alec Thomas.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.