Opened 4 years ago

Closed 4 years ago

#11540 closed defect (fixed)

Concurrent updates lead a KeyError

Reported by: Jun Omae Owned by: osimons
Priority: normal Component: CustomFieldAdminPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12


How to reproduce:

  1. Open two windows of browser
  2. Visit admin/ticket/customfields page on browser-1
  3. Visit admin/ticket/customfields page on browser-2 and add "new" field
  4. Submit to click "Apply changes" on browser-1
  5. Show the following internal error on browser-1
2014-02-03 14:36:42,090 Trac[main] ERROR: Internal Server Error:
Traceback (most recent call last):
  File "/home/jun66j5/venv/trac/0.12.5/lib/python2.4/site-packages/trac/web/", line 522, in _dispatch_request
  File "/home/jun66j5/venv/trac/0.12.5/lib/python2.4/site-packages/trac/web/", line 243, in dispatch
    resp = chosen_handler.process_request(req)
  File "/home/jun66j5/venv/trac/0.12.5/lib/python2.4/site-packages/trac/admin/", line 117, in process_request
  File "/home/jun66j5/src/trac/trac-hacks/customfieldadminplugin/0.11/customfieldadmin/", line 108, in render_admin_panel
    current_cfield['order'] = order[current_cfield['name']]
KeyError: u'new'

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by osimons

Resolution: fixed
Status: newclosed

In 13732:

CustomFieldAdminPlugin: Handle possible keys mismatch with order admin. Closes #11540.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain osimons.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.