Ticket #158 (closed defect: invalid)

Opened 8 years ago

Last modified 8 years ago

IntegrityError: duplicate key value violates unique constraint "ticket_pkey"

Reported by: dewert Owned by: tim
Priority: minor Milestone:
Component: Fawkes Version: 0.4.2
Keywords: Cc:
Git Branch:


How to Reproduce

While doing a POST operation on /newticket, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'037fb2ab0b8e8f47737a0084',
 'field_cc': u'',
 'field_component': u'Carologistics',
 'field_description': u'New Laser position needs changes in tf!',
 'field_gitbranch': u'',
 'field_keywords': u'',
 'field_milestone': u'',
 'field_owner': u'sreuter',
 'field_priority': u'major',
 'field_summary': u'Adapt static transforms',
 'field_type': u'task',
 'field_version': u'0.4.2',
 'submit': u'Create ticket'}

User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1

System Information

System information not available

Enabled Plugins

Plugin information not available

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 525, in _dispatch_request
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 246, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.6/site-packages/trac/ticket/web_ui.py", line 170, in process_request
    return self._process_newticket_request(req)
  File "/usr/lib/python2.6/site-packages/trac/ticket/web_ui.py", line 398, in _process_newticket_request
    self._do_create(req, ticket) # (redirected if successful)
  File "/usr/lib/python2.6/site-packages/trac/ticket/web_ui.py", line 1193, in _do_create
  File "/usr/lib/python2.6/site-packages/trac/ticket/model.py", line 226, in insert
  File "/usr/lib/python2.6/site-packages/trac/db/api.py", line 77, in transaction_wrapper
  File "/usr/lib/python2.6/site-packages/trac/ticket/model.py", line 232, in do_insert
    [values[name] for name in std_fields])
  File "/usr/lib/python2.6/site-packages/trac/db/util.py", line 65, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
IntegrityError: duplicate key value violates unique constraint "ticket_pkey"

Change History

comment:1 Changed 8 years ago by tim

  • Status changed from new to closed
  • Resolution set to invalid
Note: See TracTickets for help on using tickets.

This list contains all users that will be notified about changes made to this ticket.

These roles will be notified: Reporter, Subscriber, Participant

  • Daniel Ewert(Reporter)
  • Fawkes Trac List(Always)
  • Tim Niemueller(Owner, Participant)