Edgewall Software

Ticket #3652 (closed defect: fixed)

Opened 2 years ago

Last modified 19 months ago

Error when trying to create milestone with existing name

Reported by: finn@… Owned by: cboos
Priority: high Milestone: 0.11
Component: roadmap Version: 0.9.6
Severity: normal Keywords: model
Cc:

Description (last modified by cboos) (diff)

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

Change History

Changed 2 years ago by cboos

  • owner changed from cmlenz to cboos
  • description modified (diff)
  • milestone set to 0.10.1

Right, the problem is still there.

Changed 2 years ago by cboos

  • milestone changed from 0.10.1 to 0.10.2

(Sorry)

Changed 2 years ago by anonymous

Somehow related to the problematic discussed in #4130.

Changed 22 months ago by cboos

  • keywords model added

Changed 20 months ago by cboos

  • milestone changed from 0.10.5 to 0.11

Duplicate report: #4849.

Changed 19 months ago by eblot

#5217 marked as a duplicate.

Changed 19 months ago by cboos

  • priority changed from normal to high

Yep, this one is pretty annoying and got reported often... moving up on the prio list.

Changed 19 months ago by cboos

  • status changed from new to closed
  • resolution set to fixed

Fixed in r5276.

Add/Change #3652 (Error when trying to create milestone with existing name)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cboos. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.