1
votes

i have trac setup on a machine that's different from my website, what i want to do is, everytime there is error(like when direct to a 404/500 pages) on the website, it will automatically submit a new ticket to server with trac installed, i tried to use the most intuitive way:

http://www.example/trac/newticket?reporter=anonymous&summary=test&type=defect&description=somethinginhere&action=create&status=new&priority=minor

but somehow it doesn't submit, but preview it, so i just wondering how can i overcome this. what i planning to do is using a img tag with src with the above address.

or is there a better way to it, i know installing xmlrpcplugin might solve my problem, but for now i just need a quick solution.

3
It sounds like you've answered your own question. From my own experiences with Trac, I've found plugin installation to be very quick and easy. Added to this, XML-RPC is a common protocol, and there is a client library for pretty much any language you're likely to be using. I would have thought the XMLRPCPlugin would be the most effective way of handling this, and probably one of the quickest too.alastairs

3 Answers

0
votes

There is a __FORM_TOKEN value that I think you need to get so that your ticket creation will be accepted.

0
votes

Can't you debug it with FireBug and what happens locally? Maybe some extra value is set when you press 'create' instead of 'preview'?

0
votes

You might want to take a look at the TracCmdScript.