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: | 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 )
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 , 17 years ago
Description: | modified (diff) |
---|
comment:2 by , 17 years ago
Version: | → 0.10.4 |
---|
comment:3 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Still present in trunk. This should be fixed in a more general way, see #6348.
Note:
See TracTickets
for help on using tickets.
Please fill in the version field with the appropriate value.