Modify

Opened 9 years ago

Closed 9 years ago

#199 closed defect (fixed)

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

Reported by: tacker Owned by: 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 (0)

Change History (4)

comment:1 Changed 9 years ago by athomas

  • Status changed from new to assigned

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

comment:2 Changed 9 years ago by tacker

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

comment:3 Changed 9 years ago 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.

comment:4 Changed 9 years ago by athomas

  • Resolution set to fixed
  • Status changed from assigned to closed

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

Add Comment

Modify Ticket

Action
as closed The owner will remain athomas.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.