Modify

Opened 9 months ago

Closed 8 months ago

#11540 closed defect (fixed)

Concurrent updates lead a KeyError

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

Description

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/main.py", line 522, in _dispatch_request
    dispatcher.dispatch(req)
  File "/home/jun66j5/venv/trac/0.12.5/lib/python2.4/site-packages/trac/web/main.py", 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/web_ui.py", line 117, in process_request
    path_info)
  File "/home/jun66j5/src/trac/trac-hacks/customfieldadminplugin/0.11/customfieldadmin/admin.py", line 108, in render_admin_panel
    current_cfield['order'] = order[current_cfield['name']]
KeyError: u'new'

Attachments (0)

Change History (1)

comment:1 Changed 8 months ago by osimons

  • Resolution set to fixed
  • Status changed from new to closed

In 13732:

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

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.