Changes between Initial Version and Version 3 of Ticket #2008


Ignore:
Timestamp:
Sep 6, 2007, 8:09:16 PM (17 years ago)
Author:
Steffen Pingel
Comment:

Alec, I suspect that the ticket id in the create() method is not converted to an int but has a PostgresSQL specific integer type causing the error. I can't test it since I don't have a working PostgreSQL environment.

Kai, could you try to apply the following patch which adds an explicit type conversion before returning the ticket id to your Trac XML-RPC plug-in:

Index: tracrpc/ticket.py
===================================================================
--- tracrpc/ticket.py   (revision 2617)
+++ tracrpc/ticket.py   (working copy)
@@ -90,7 +90,7 @@
                 self.log.exception("Failure sending notification on creation "
                                    "of ticket #%s: %s" % (t.id, e))

-        return t.id
+        return int(t.id)

     def update(self, req, id, comment, attributes = {}, notify=False):
         """ Update a ticket, returning the new ticket in the same form as getTicket(). """

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2008 – Description

    initial v3  
    44
    55Steps To Reproduce:
    6 1.Try to create an TRAC Repository New Task using XMLRPCPlugin
    7 2.When click on "Create New", the EDITOR keep unsaved status with the ERROR
    8 message "Unable to submit at this time. Check connectivity and retry."
    9 3.TICKET(Task) was actually created on TRAC with generated ID
     6 1. Try to create an TRAC Repository New Task using XMLRPCPlugin
     7 2. When click on "Create New", the EDITOR keep unsaved status with the ERROR message "Unable to submit at this time. Check connectivity and retry."
     8 3. TICKET(Task) was actually created on TRAC with generated ID
    109
    1110This log was generated during this error
    12 
    1311
    1412{{{
     
    4846}}}
    4947
    50 
    51 
    52 
    53 
    5448More information:
    5549Trac 10.3 with PostgresSQL 8.2.3