Edgewall Software
Modify

Opened 6 years ago

Closed 6 years ago

#11920 closed defect (fixed)

query:? link with duplicated group parameters leads a TypeError

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.

Attachments (0)

Change History (3)

comment:1 by Ryan J Ollos, 6 years ago

Milestone: 1.0.41.0.5

comment:2 by Jun Omae, 6 years ago

Owner: set to Jun Omae
Status: newassigned

comment:3 by Jun Omae, 6 years ago

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

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

Modify Ticket

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