Code

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#16113 closed Uncategorized (fixed)

TypeError: unhashable type: 'list'

Reported by: anonymous Owned by: nobody
Component: Uncategorized Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX:

Description

Following the link 'easy-pickings' on https://docs.djangoproject.com/en/1.3/internals/contributing/ I got the message:

Oops…
Trac detected an internal error:

TypeError: unhashable type: 'list'

How to Reproduce

While doing a GET operation on /query, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'keywords': [u'~easy-pickings', u'~easy-pickings'],
 'order': [u'priority?status=new', u'priority'],
 'status': [u'new', u'assigned', u'reopened', u'assigned', u'reopened']}

User agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20110429 Firefox/4.0.1

System Information

System information not available

Enabled Plugins

Plugin information not available

Python Traceback

Traceback (most recent call last):
  File "/home/trac/venv/lib/python2.6/site-packages/trac/web/main.py", line 511, in _dispatch_request
    dispatcher.dispatch(req)
  File "/home/trac/venv/lib/python2.6/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/home/trac/venv/lib/python2.6/site-packages/trac/ticket/query.py", line 918, in process_request
    max)
  File "/home/trac/venv/lib/python2.6/site-packages/trac/ticket/query.py", line 73, in __init__
    self.order = synonyms.get(order, order)     # 0.11 compatibility
TypeError: unhashable type: 'list'

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by jonash

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Someone should report this to the Trac bug tracker.

comment:2 Changed 3 years ago by jezdez

  • Resolution set to fixed
  • Status changed from new to closed

Not needed to report upstream, this was a Nginx misconfiguration.

http://wiki.nginx.org/HttpRewriteModule#rewrite says:

"If you specify a ? at the end of a rewrite then Nginx will drop the original $args (arguments). When using $request_uri or $uri&$args you should specify the ? at the end of the rewrite to avoid Nginx doubling the query string." So appending a ? did the trick.

comment:3 Changed 3 years ago by jonash

Trac shouldn't crash like this anyway.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.