Modify ↓
Opened 19 years ago
Closed 17 years ago
#3652 closed defect (fixed)
Error when trying to create milestone with existing name
| Reported by: | Owned by: | Christian Boos | |
|---|---|---|---|
| Priority: | high | Milestone: | 0.11.3 |
| Component: | roadmap | Version: | 0.9.6 |
| Severity: | normal | Keywords: | model |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
If you try to create a new milestone with the same name as an existing one, you get a python error message and traceback. This should be handled gracefully with an instruction to the user about choosing another name.
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 206, in handler
dispatch_request(mpr.path_info, mpr, env)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 139, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 107, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.3/site-packages/trac/ticket/roadmap.py", line 355, in process_request
self._do_save(req, db, milestone)
File "/usr/lib/python2.3/site-packages/trac/ticket/roadmap.py", line 413, in _do_save
milestone.insert()
File "/usr/lib/python2.3/site-packages/trac/ticket/model.py", line 576, in insert
(self.name, self.due, self.completed, self.description))
File "/usr/lib/python2.3/site-packages/trac/db.py", line 219, in execute
args or [])
File "/usr/lib/python2.3/site-packages/trac/db.py", line 211, in _rollback_on_error
return function(self, *args, **kwargs)
IntegrityError: column name is not unique
Attachments (0)
Change History (10)
comment:1 by , 19 years ago
| Description: | modified (diff) |
|---|---|
| Milestone: | → 0.10.1 |
| Owner: | changed from to |
comment:4 by , 19 years ago
| Keywords: | model added |
|---|
comment:7 by , 19 years ago
| Priority: | normal → high |
|---|
Yep, this one is pretty annoying and got reported often… moving up on the prio list.
comment:9 by , 17 years ago
| Milestone: | 0.11 → 0.11.3 |
|---|---|
| Resolution: | fixed |
| Status: | closed → reopened |
Hm, not really, renaming a milestone to an existing one still crashes.
comment:10 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
Note:
See TracTickets
for help on using tickets.



Right, the problem is still there.