Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#5217 closed defect (duplicate)

IntegrityError: column name is not unique, while was created a new milestone

Reported by: Santiago Pessat spessat@… Owned by: Christopher Lenz
Priority: normal Milestone:
Component: roadmap Version: 0.10.3rc1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

This exception “jumped” while was created a new milestone because the name of a new milestone has already exists.

I think that it would have to be treated, and not to return the error of a Python Traceback

If this is not posible or it was already improved, sorry and close the ticket.

Thanks and sorry for my inglish

This is the code of a Traceback:

Python Traceback 

Traceback (most recent call last): 
  File "/usr/local/lib/python2.3/site-packages/trac-0.10.3rc1-py2.3.egg/trac/web/main.py", line 387, in dispatch_request 
    dispatcher.dispatch(req) 
  File "/usr/local/lib/python2.3/site-packages/trac-0.10.3rc1-py2.3.egg/trac/web/main.py", line 237, in dispatch 
    resp = chosen_handler.process_request(req) 
  File "/usr/local/lib/python2.3/site-packages/trac-0.10.3rc1-py2.3.egg/trac/ticket/roadmap.py", line 359, in process_request 
    self._do_save(req, db, milestone) 
  File "/usr/local/lib/python2.3/site-packages/trac-0.10.3rc1-py2.3.egg/trac/ticket/roadmap.py", line 430, in _do_save 
    milestone.insert() 
  File "/usr/local/lib/python2.3/site-packages/trac-0.10.3rc1-py2.3.egg/trac/ticket/model.py", line 616, in insert 
    (self.name, self.due, self.completed, self.description)) 
  File "/usr/local/lib/python2.3/site-packages/trac-0.10.3rc1-py2.3.egg/trac/db/util.py", line 50, in execute 
    return self.cursor.execute(sql_escape_percent(sql), args) 
  File "/usr/local/lib/python2.3/site-packages/trac-0.10.3rc1-py2.3.egg/trac/db/sqlite_backend.py", line 56, in execute 
    args or []) 
  File "/usr/local/lib/python2.3/site-packages/trac-0.10.3rc1-py2.3.egg/trac/db/sqlite_backend.py", line 48, in _rollback_on_error 
    return function(self, *args, **kwargs) 
IntegrityError: column name is not unique

Santiago Pessat

Attachments (0)

Change History (2)

comment:1 by Emmanuel Blot, 17 years ago

Resolution: duplicate
Status: newclosed
Version: 0.10.3rc1

This is a duplicate if #3652.

BTW, you'd better upgrade to a recent Trac release such as 0.10.4: you are using a release candidate version.

comment:2 by Santiago Pessat spessat@…, 17 years ago

sorry for duplicate the ticket and thanks to warn to me on the update.

Thanks and sorry for my inglish.

Santiago Pessat.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz 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.