Edgewall Software

Ticket #2818 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

query oops: <lambda>() got multiple values for keyword argument 'group'

Reported by: kevin@… Owned by: mgood
Priority: normal Milestone: 0.10
Component: ticket system Version: 0.9.4
Severity: normal Keywords: query
Cc: paul@…

Description

The following query made our trac say oops:

query: group=owner&status!=closed&reporter~=keturn

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/cgi_frontend.py", line 130, in run
    dispatch_request(req.path_info, req, 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/wiki/web_ui.py", line 92, in process_request
    self._render_editor(req, db, page, preview=True)
  File "/usr/lib/python2.3/site-packages/trac/wiki/web_ui.py", line 311, in _render_editor
    info['page_html'] = wiki_to_html(page.text, self.env, req, db)
  File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 744, in wiki_to_html
    Formatter(env, req, absurls, db).format(wikitext, out, escape_newlines)
  File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 599, in format
    result = re.sub(self.rules, self.replace, line)
  File "/usr/lib/python2.3/sre.py", line 143, in sub
    return _compile(pattern, 0).sub(repl, string, count)
  File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 221, in replace
    return getattr(self, '_' + itype + '_formatter')(match, fullmatch)
  File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 271, in _shref_formatter
    return self._make_link(ns, target, match, match)
  File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 295, in _make_link
    util.escape(label, False))
  File "/usr/lib/python2.3/site-packages/trac/ticket/query.py", line 631, in _format_link
    return '<a class="query" href="%s">%s</a>' \
  File "/usr/lib/python2.3/site-packages/trac/ticket/query.py", line 174, in get_href
    format=format, **self.constraints)
TypeError: <lambda>() got multiple values for keyword argument 'group'

Attachments

Change History

Changed 3 years ago by paul@…

Same here; the workaround we use is:

query:?group=owner&status=!closed&reporter=~keturn

It would be nice to be able to use the more concise syntax with group though.

Changed 3 years ago by paul@…

  • cc paul@… added

Whoops, typo in my email address in the previous comment. Sorry about that.

Changed 3 years ago by cboos

  • keywords query added
  • milestone set to 0.10

#3019 marked as duplicate.

Changed 3 years ago by mgood

  • owner changed from jonas to mgood
  • status changed from new to assigned

Changed 3 years ago by mgood

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in [3278]

Add/Change #2818 (query oops: <lambda>() got multiple values for keyword argument 'group')

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from mgood. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.