Edgewall Software

Opened 9 years ago

Closed 9 years ago

#11920 closed defect (fixed)

query:? link with duplicated group parameters leads a TypeError — at Version 3

Reported by: Jun Omae Owned by: Jun Omae
Priority: normal Milestone: 1.0.5
Component: query system Version: 0.12-stable
Severity: minor Keywords:
Cc: Branch:
Release Notes:

Fix crashing query page with multiple group parameters.

API Changes:
Internal Changes:

Description

A TypeError is raised from the following query link.

query:?group=status&group=status&order=priority

Traceback (most recent call last):
  File "/venv/trac/1.0.3/lib/python2.5/site-packages/trac/web/main.py", line 513, in _dispatch_request
    dispatcher.dispatch(req)
  File "/venv/trac/1.0.3/lib/python2.5/site-packages/trac/web/main.py", line 222, in dispatch
    resp = chosen_handler.process_request(req)
  File "/venv/trac/1.0.3/lib/python2.5/site-packages/trac/ticket/query.py", line 961, in process_request
    max)
  File "/venv/trac/1.0.3/lib/python2.5/site-packages/trac/ticket/query.py", line 131, in __init__
    if self.group not in field_names:
TypeError: list objects are unhashable

Similar to #10907.

Change History (3)

comment:1 by Ryan J Ollos, 9 years ago

Milestone: 1.0.41.0.5

comment:2 by Jun Omae, 9 years ago

Owner: set to Jun Omae
Status: newassigned

comment:3 by Jun Omae, 9 years ago

Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Fixed in [13755] and merged to trunk in [13756].

Note: See TracTickets for help on using tickets.