Modify

Opened 18 years ago

Closed 18 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:

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 (0)

Change History (4)

comment:1 Changed 18 years ago by Alec Thomas

Status: newassigned

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

comment:2 Changed 18 years ago by Markus Tacker

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

comment:3 Changed 18 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 18 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
Action
as closed The owner will remain Alec Thomas.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.