Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2818 closed defect (fixed)

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

Reported by: kevin@… Owned by: Matthew Good
Priority: normal Milestone: 0.10
Component: ticket system Version: 0.9.4
Severity: normal Keywords: query
Cc: paul@… Branch:
Release Notes:
API Changes:
Internal Changes:

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 (0)

Change History (5)

comment:1 by paul@…, 18 years ago

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.

comment:2 by paul@…, 18 years ago

Cc: paul@… added

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

comment:3 by Christian Boos, 18 years ago

Keywords: query added
Milestone: 0.10

#3019 marked as duplicate.

comment:4 by Matthew Good, 18 years ago

Owner: changed from Jonas Borgström to Matthew Good
Status: newassigned

comment:5 by Matthew Good, 18 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [3278]

Modify Ticket

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