On Jan 12, 6:22 pm, Reinhard Wobst <[email protected]> wrote: > Today I observed a strange behaviour in the xmlrpc interface. I sent a > number of attachments to some ticket via xmlrpc and immediately after > I called xmlrpclib.ServerProxy.ticket.listAttachments(...). On my > personal systems, this always worked fine, but on the clients system, > 0 attachments were returned. However, when I waited 1 second before > calling listAttachments(), it was OK again. We use trac 0.12 and > sqlite3. > > Clearly, this bug could not be found via debugging. Just that brought > me > in mind that it could be a timing error ... > > I guess, Trac is not guilty - some database cache could have a timing > problem. My belly says that there is a relation to the bug that one > must > wait 1 sec between sending comments to the same ticket. > > Is this bug known? Could the time of 1 sec become longer in some > cases? > > Thanks in advance > > Reinhard
And you waited to receive the filename for each of the ticket.putAttachment() calls so you know each completed successfully? You made all your calls sequentially and waited for each call to return before making the next? What web server does your client use to host Trac - and what do you use that works without issues? These are difficult issues to hunt down. However, the RPC plugin has infrastructure for functional tests so feel free to make a test case that replicates your calls to see if the issue perhaps can be triggered in isolation too. :::simon https://www.coderesort.com http://trac-hacks.org/wiki/osimons -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
