Modify

Opened 8 years ago

#6518 new defect

Ticket creation error w/ TracBacklog 0.2.1

Reported by: jcampbell@… Owned by: Odd Simon Simonsen
Priority: normal Component: XmlRpcPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Currently installed: Trac 0.11.6, TracBacklog 0.2.1 and TracXMLRPC 1.0.6

Whenever I create a ticket via XML-RPC, I receive the following error:

2010-02-01 14:04:21,735 Trac[web_ui] ERROR: column ticket_id is not unique
2010-02-01 14:04:21,737 Trac[web_ui] ERROR: Traceback (most recent call last):

    File "/usr/lib/python2.6/site-packages/TracXMLRPC-1.0.6-py2.6.egg/tracrpc/web_ui.py", line 182, in process_xml_request

        result = XMLRPCSystem(self.env).get_method(method)(req, args)

    File "/usr/lib/python2.6/site-packages/TracXMLRPC-1.0.6-py2.6.egg/tracrpc/api.py", line 94, in call

        result = self.callable(req, *args)

    File "/usr/lib/python2.6/site-packages/TracXMLRPC-1.0.6-py2.6.egg/tracrpc/ticket.py", line 150, in create

        listener.ticket_created(t)

    File "build/bdist.linux-i686/egg/backlog/web_ui.py", line 136, in ticket_created

        (ticket.id, ticket.id))

    File "/usr/lib/python2.6/site-packages/trac/db/util.py", line 64, in execute

        return self.cursor.execute(sql_escape_percent(sql), args)

    File "/usr/lib/python2.6/site-packages/trac/db/sqlite_backend.py", line 80, in execute

        PyFormatCursor.execute(self, *args)

    File "/usr/lib/python2.6/site-packages/trac/db/sqlite_backend.py", line 59, in execute

        args or [])

    File "/usr/lib/python2.6/site-packages/trac/db/sqlite_backend.py", line 51, in _rollback_on_error

        return function(self, *args, **kwargs)

IntegrityError: column ticket_id is not unique

I checked and the "backlog" table is the only table in the database with a ticket_id column and it currently is a primary key. I verified this is a problem that only arises when TracBacklog is installed by removing that plugin.

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Odd Simon Simonsen.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.