Opened 5 years ago

Last modified 5 years ago

#13577 closed defect

KeyError on custom fields — at Version 2

Reported by: Massimo Owned by: Ryan J Ollos
Priority: normal Component: AutocompleteUsersPlugin
Severity: normal Keywords:
Cc: Jun Omae Trac Release: 1.2

Description (last modified by Ryan J Ollos)

Hi,

like discussed in the groups already, here is the bugreport.

gmessage:trac-users:fPHhL1L3rNw/tFavdro9EAAJ

With Trac-1.2.3 and TracAutocompleteUsersPlugin-0.4.6.dev0-py2.7.egg we have errors when trying to modify an existing ticket comment. Writing new comments works fine.

The error is something about our custom field "tester" that is configured like this:

[ticket-custom]
test = select
test.label = Test
test.options = |open|done
test.order = 11
test.value =
tester = text
tester.label = Tester
tester.order = 10
tester.value =

Trac detected an internal error:

KeyError: u'field_tester'

Most recent call last:

File "/usr/lib64/python2.7/site-packages/trac/web/main.py", line 647, in _dispatch_request
  dispatcher.dispatch(req)
File "/usr/lib64/python2.7/site-packages/trac/web/main.py", line 215, in dispatch
  chosen_handler = self._pre_process_request(req, chosen_handler)
File "/usr/lib64/python2.7/site-packages/trac/web/main.py", line 455, in _pre_process_request
  chosen_handler = filter_.pre_process_request(req, chosen_handler)
File "build/bdist.linux-x86_64/egg/autocompleteusers/autocompleteusers.py", line 85, in pre_process_request
  fixup_user_list(FIELDS_OPTION[1])
File "build/bdist.linux-x86_64/egg/autocompleteusers/autocompleteusers.py", line 82, in fixup_user_list
  req.args[arg] = _fixup_cc_list(req.args[arg])

Change History (2)

comment:1 Changed 5 years ago by Massimo

Trac Release: 1.2

comment:2 Changed 5 years ago by Ryan J Ollos

Description: modified (diff)
Owner: changed from Tetsuya Morimoto to Ryan J Ollos
Status: newaccepted
Note: See TracTickets for help on using tickets.