Modify ↓
#1728 closed defect (fixed)
Hitting 'next' on some searches gives: iteration over non-sequence
Reported by: | 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 )
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 , 19 years ago
Description: | modified (diff) |
---|
comment:2 by , 19 years ago
Component: | general → search system |
---|---|
Priority: | normal → high |
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 , 19 years ago
Milestone: | → 0.9 |
---|---|
Priority: | high → normal |
Severity: | normal → major |
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 , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This problem was hopefully fixed by [1937], please reopen if that's not the case.
Note:
See TracTickets
for help on using tickets.
Use {{{ }}} around your block for preformatted text.