Hi,
I am working on accessing Trac (0.12) using XMLRPC. My code has been
working fine, but we recently set up a new Trac server, and I have
encountered a problem.
First I create a new ticket by calling 'ticket.create()'. This works
fine. I can see the ticket using the web interface.
When I fetch ticket data using 'ticket.get()', I can get the ticket
info for tickets which have been created normally, using the web
interface, but for the tickets I created using ticket.create() the
server 'returns a fault exception' of:
cannot marshal <class 'trac.util.text.Empty'> objects' while
executing 'ticket.get()
On inspection of the database, I can see that the tickets I created
with xmlrpc contain '\N' for a few fields (cc, version & keywords). I
take this '\N' to mean 'empty string', which it seems is different
than a string of zero length.
>From an earlier post (https://groups.google.com/group/trac-users/
browse_thread/thread/180165f2907f5d67), I see that osimons suggested
using the latest version of the XmlRpcPlugin. I am using the latest
version (though it's a little strange, the egg file contains 1.1.2,
but when installed it reports as 1.0.6 in the Plugins screen).
The potential fixes I see are:
- Somehow make the ticket creation not create empty '\N' strings.
- Somehow make XmlRpcPlugin tolerant of empty strings, correctly
serializing them to strings with no characters in.
- Somehow make the database store empty strings the same way as when
new tickets are created the 'normal way' through the web interface.
The database we are using is the latest Postgres. In the earlier post
which I mentioned above, the poster mentioned a patch for Postgres
which may fix the issue, but I've not managed to find out anything
more about that.
Unfortunately I am not experienced with Python or Postgres, so I've
reached a bit of a dead-end now.
Thanks for any help!
Mark.
--
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.