Modify

Opened 14 months ago

Closed 14 months ago

Last modified 14 months ago

#13577 closed defect (fixed)

KeyError on custom fields

Reported by: Massimo Owned by: jomae
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])

Attachments (0)

Change History (4)

comment:1 Changed 14 months ago by Massimo

Trac Release: 1.2

comment:2 Changed 14 months ago by Ryan J Ollos

Description: modified (diff)
Owner: changed from Tetsuya Morimoto to Ryan J Ollos
Status: newaccepted

comment:3 Changed 14 months ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

In 17419:

TracAutocompleteUsersPlugin 0.4.6dev: Fix error editing ticket comment

The issue can also occur on misconfigured [autocomplete]
fields and/or multi_fields option.

Issue reported by Massimo. Patch by Jun Omae.

Fixes #13577.

Last edited 14 months ago by Ryan J Ollos (previous) (diff)

comment:4 Changed 14 months ago by Ryan J Ollos

Owner: changed from Ryan J Ollos to jomae

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain jomae.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.