Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#6095 closed defect (duplicate)

Attempting to rename priority can get a unique constraint violation

Reported by: s.dallaway@… Owned by: Jonas Borgström
Priority: low Milestone:
Component: general Version: 0.10.4
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Emmanuel Blot)

If you stupidly use the web admin module (looks neat BTW) to rename a priority to an existing name you get a unique constraint violation.

Traceback (most recent call last):
  File "C:\Program Files\Python 2.4\Lib\site-packages\trac\web\main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "C:\Program Files\Python 2.4\Lib\site-packages\trac\web\main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "c:\program files\python 2.4\lib\site-packages\tracwebadmin-0.1.2dev_r5911-py2.4.egg\webadmin\web_ui.py", line 119, in process_request
    path_info)
  File "c:\program files\python 2.4\lib\site-packages\tracwebadmin-0.1.2dev_r5911-py2.4.egg\webadmin\ticket.py", line 310, in process_admin_request
    enum.update()
  File "C:\Program Files\Python 2.4\Lib\site-packages\trac\ticket\model.py", line 400, in update
    (self.name, self.value, self.type, self._old_name))
  File "C:\Program Files\Python 2.4\Lib\site-packages\trac\db\util.py", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "C:\Program Files\Python 2.4\Lib\site-packages\trac\db\util.py", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
IntegrityError: duplicate key violates unique constraint "enum_pk"

Attachments (0)

Change History (3)

comment:1 by Emmanuel Blot, 17 years ago

Description: modified (diff)

Please fill in the version field with the appropriate value.

comment:2 by Simon Dallaway <s.dallaway@…>, 17 years ago

Version: 0.10.4

comment:3 by Christian Boos, 17 years ago

Resolution: duplicate
Status: newclosed

Still present in trunk. This should be fixed in a more general way, see #6348.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.