Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

#1959 closed defect (fixed)

"String index out of range" error when undertaking a search

Reported by: anonymous Owned by: Christopher Lenz
Priority: highest Milestone: 0.9
Component: ticket system Version: devel
Severity: critical Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christopher Lenz)

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

Change History (4)

comment:1 by Christopher Lenz, 19 years ago

Component: generalticket system
Description: modified (diff)
Milestone: 0.9
Priority: normalhighest
Severity: normalcritical
Version: 0.8.4devel

comment:2 by anonymous, 19 years ago

Owner: changed from Jonas Borgström to anonymous
Status: newassigned

comment:3 by Christopher Lenz, 19 years ago

Owner: changed from anonymous to Christopher Lenz
Status: assignednew

Who's anonymous?

comment:4 by Christopher Lenz, 19 years ago

Resolution: fixed
Status: newclosed

Fixed in [2121].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz 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.