#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: | no |
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'
Change History (3)
comment:1 by , 14 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → 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.
Someone should report this to the Trac bug tracker.