Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#1728 closed defect (fixed)

Hitting 'next' on some searches gives: iteration over non-sequence

Reported by: buhrt@… Owned by: Jonas Borgström
Priority: normal Milestone: 0.9
Component: search system Version: devel
Severity: major Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Matthew Good)

Oops...
Trac detected an internal error:

iteration over non-sequence

...
Python traceback

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/cgi_frontend.py", line 103, in run
    dispatch_request(os.getenv('PATH_INFO', ''), req, env)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 423, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 285, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/trac/Search.py", line 97, in process_request
    wiki, page)
  File "/usr/lib/python2.3/site-packages/trac/Search.py", line 283, in perform_query
    item['message'] = escape(self.shorten_result(msg, keywords))
  File "/usr/lib/python2.3/site-packages/trac/Search.py", line 133, in shorten_result
    for k in keywords:
TypeError: iteration over non-sequence

Attachments (0)

Change History (4)

comment:1 by Matthew Good, 19 years ago

Description: modified (diff)

Use {{{ }}} around your block for preformatted text.

comment:2 by Emmanuel Blot, 19 years ago

Component: generalsearch system
Priority: normalhigh

Got the same error, with trac:trunk [1868], using 'cmd' as the search string (w/o the quotes).

Traceback (most recent call last):
  File "/local/engine/trac/trac/web/modpython_frontend.py", line 269, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/local/engine/trac/trac/web/main.py", line 424, in dispatch_request
    dispatcher.dispatch(req)
  File "/local/engine/trac/trac/web/main.py", line 286, in dispatch
    resp = chosen_handler.process_request(req)
  File "/local/engine/trac/trac/Search.py", line 97, in process_request
    wiki, page)
  File "/local/engine/trac/trac/Search.py", line 283, in perform_query
    item['message'] = escape(self.shorten_result(msg, keywords))
  File "/local/engine/trac/trac/Search.py", line 133, in shorten_result
    for k in keywords:
TypeError: iteration over non-sequence

I can't find yet the exact cause of the error: I did not find any other string that produce this error, even if they are 3 character long… weird.

comment:3 by Emmanuel Blot, 19 years ago

Milestone: 0.9
Priority: highnormal
Severity: normalmajor

It seems related to search within the Ticket DB (at least with my database). Another term with triggers an exception is 'pol'.

The term has to exist in the ticket DB to make Trac crash.

comment:4 by Jonas Borgström, 19 years ago

Resolution: fixed
Status: newclosed

This problem was hopefully fixed by [1937], please reopen if that's not the case.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.