Modify ↓
Ticket #5494 (closed defect: duplicate)
Opened 5 years ago
Last modified 5 years ago
Cannot use ticket-custom field name 'group', generates error in
| Reported by: | tom.cobb@… | Owned by: | jonas |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | ticket system | Version: | 0.10.3.1 |
| Severity: | normal | Keywords: | custom fields |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
Small bug here, if you create a ticket-custom field with name 'group', it causes the custom query execution to fail.
extract from trac.ini:
[ticket-custom] group = text group.label = Group (Optional) group.order = 2 group.value = controls
Steps to reproduce:
- Click view tickets
- Click Custom Query
- Click Update (doesn't matter what fields are in the query)
traceback:
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 406, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 237, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.3/site-packages/trac/ticket/query.py", line 414, in process_request
req.redirect(query.get_href(req))
File "/usr/lib/python2.3/site-packages/trac/ticket/query.py", line 189, in get_href
format=format, **self.constraints)
TypeError: <lambda>() got multiple values for keyword argument 'group'
The problem goes away if the field is renamed to something else like 'agroup'
Attachments
Change History
comment:1 Changed 5 years ago by cboos
- Component changed from general to ticket system
- Keywords custom fields added
- Resolution set to duplicate
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.



I don't think we're going to allow such special names, but what we can do is to ignore those invalid custom fields and warn the user that such custom field names are not allowed and are going to be ignored, in the line of #2431.
See #1449.