Edgewall Software

Opened 14 years ago

Closed 14 years ago

#7930 closed defect (duplicate)

Error When Adding new Priority having an existing name

Reported by: Kanaan A. Owned by:
Priority: low Milestone:
Component: admin/web Version: none
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Emmanuel Blot)

When you add a new priority having an existing name (the name already exists in the priorities set), an internal error is triggered

Python Traceback
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 406, in dispatch_request
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.5/site-packages/TracWebAdmin-0.1.2dev-py2.5.egg/webadmin/web_ui.py", line 119, in process_request
  File "/usr/lib/python2.5/site-packages/TracWebAdmin-0.1.2dev-py2.5.egg/webadmin/ticket.py", line 327, in process_admin_request
  File "/usr/lib/python2.5/site-packages/trac/ticket/model.py", line 379, in insert
    (self.type, self.name, self.value))
  File "/usr/lib/python2.5/site-packages/trac/db/util.py", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/lib/python2.5/site-packages/trac/db/sqlite_backend.py", line 56, in execute
    args or [])
  File "/usr/lib/python2.5/site-packages/trac/db/sqlite_backend.py", line 48, in _rollback_on_error
    return function(self, *args, **kwargs)
IntegrityError: columns type, name are not unique

Attachments (0)

Change History (1)

comment:1 by Emmanuel Blot, 14 years ago

Description: modified (diff)
Resolution: duplicate
Status: newclosed

Please read NewTicketGuidelines about how to report a useful bug/error.

Your bug report is missing an important information: the Trac version.
Moreover, this is a duplicate which is easy to locate: simply search for the error: columns type, name are not unique
BTW, please use verbatim blocks ({{{}}}) when quoting an error trace.

Dup of #6808

Modify Ticket

Change Properties
Set your email in Preferences
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.