Modify ↓
#2113 closed defect (fixed)
Ticket report filter exception if multiple empty criteria given
Reported by: | anonymous | Owned by: | Christopher Lenz |
---|---|---|---|
Priority: | normal | Milestone: | 0.9 |
Component: | ticket system | Version: | 0.9b1 |
Severity: | major | Keywords: | query |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Add two filters to your criteria which can be combined with "OR" (I was doing it with adding two "Owner" filters). Leave both values emty and click "Update". I get an exception:
Python traceback Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 205, in handler dispatch_request(mpr.path_info, mpr, env) File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 139, in dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 107, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.3/site-packages/trac/ticket/query.py", line 388, in process_request self.display_html(req, query) File "/usr/lib/python2.3/site-packages/trac/ticket/query.py", line 502, in display_html tickets = query.execute(db) File "/usr/lib/python2.3/site-packages/trac/ticket/query.py", line 133, in execute sql = self.get_sql() File "/usr/lib/python2.3/site-packages/trac/ticket/query.py", line 251, in get_sql clauses.append("(" + " OR ".join(constraint_sql) + ")") TypeError: sequence item 0: expected string, NoneType found
This reproducable on your public site I am writing this ticket on.
Attachments (0)
Change History (2)
comment:1 by , 19 years ago
Component: | report system → ticket system |
---|---|
Keywords: | query added |
Milestone: | → 0.9 |
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in [2292].