Modify ↓
Ticket #1959 (closed defect: fixed)
Opened 6 years ago
Last modified 6 years ago
"String index out of range" error when undertaking a search
| Reported by: | anonymous | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | highest | Milestone: | 0.9 |
| Component: | ticket system | Version: | devel |
| Severity: | critical | Keywords: | |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description (last modified by cmlenz) (diff)
When undertaking a search from http://projects.edgewall.com/trac/search and no input is given (i.e. just clicked search) a String out of range error was returned.
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 210, in handler
dispatch_request(mpr.path_info, mpr, env)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 452, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 312, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.3/site-packages/trac/Search.py", line 163, in process_request
results += list(source.get_search_results(req, query, filters))
File "/usr/lib/python2.3/site-packages/trac/ticket/api.py", line 184, in get_search_results
sql = "SELECT DISTINCT a.summary,a.description,a.reporter, " \
File "/usr/lib/python2.3/site-packages/trac/Search.py", line 61, in query_to_sql
if q[0] == q[-1] == "'" or q[0] == q[-1] == '"':
IndexError: string index out of range
Attachments
Change History
comment:1 Changed 6 years ago by cmlenz
- Component changed from general to ticket system
- Description modified (diff)
- Milestone set to 0.9
- Priority changed from normal to highest
- Severity changed from normal to critical
- Version changed from 0.8.4 to devel
comment:2 Changed 6 years ago by anonymous
- Owner changed from jonas to anonymous
- Status changed from new to assigned
comment:3 Changed 6 years ago by cmlenz
- Owner changed from anonymous to cmlenz
- Status changed from assigned to new
comment:4 Changed 6 years ago by cmlenz
- Resolution set to fixed
- Status changed from new to closed
Fixed in [2121].
Note: See
TracTickets for help on using
tickets.



Who's anonymous?