Hi there, I have a trac install where certain tickets refuse to
display
because I've posted Rails' backtrace information which includes
something to trip up the wiki formatter.  The error I get is:

ValueError: invalid literal for int():
0f23ce0a757854301cd1c93221074396956ed0a2

And the top of the backtrace shows that it's in wiki_to_html:

File
"/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/ticket/
templates/ticket.html",
line 188, in <Expression u'wiki_to_html(context, ticket.description,
escape_newlines=preserve_newlines)'>
  ${wiki_to_html(context, ticket.description,
escape_newlines=preserve_newlines)}

The text  it is objecting to is a session ID which isn't enclosed in
{{{ :

sqlite> select * from ticket where id=18;
18|defect|1224069951|1224069951|||tedious||mbloch||||new||Strange
OpenSRS error when transferring away .uk domains|NB The tag transfer
did
actually *work* for this operation so possibly this is an OpenSRS bug
that just needs chasing or working around.

Processing DomainController#do_transfer_out (for 88.97.26.186 at
2008-10-15 11:17:27) [POST]
  Session ID:
BAh7CCIVYnl0ZW1hcmtfc2Vzc2lvbiItMDkxOGE0ZGYxNGZjNDAwZGUyMzMy
MjVlYjM1YjJlYWZkZDVhMWM0MCIVYnl0ZW1hcmtfYWNjb3VudGkCKRQiCmZs
YXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhhc2h7AAY6
CkB1c2VkewA=--0f23ce0a757854301cd1c93221074396956ed0a2
  Parameters: {"name"=>"dwal.org.uk", "commit"=>"Transfer now",
"tag"=>"123-REG", "action"=>"do_transfer_out", "controller"=>"domain"}
!!! 1224069458 #<Bytemark::RemoteExceptions::ExternalSystemException:
OpenSRS::NotSuccessfulException: Authentication Error. (code 415)>
(XMLRPC/979435526/OpenSRS::NotSuccessfulExcepti

  Session ID:
BAh7CCIVYnl0ZW1hcmtfc2Vzc2lvbiItMDkxOGE0ZGYxNGZjNDAwZGUyMzMy
MjVlYjM1YjJlYWZkZDVhMWM0MCIVYnl0ZW1hcmtfYWNjb3VudGkCKRQiCmZs
YXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhhc2h7AAY6
CkB1c2VkewA=--0f23ce0a757854301cd1c93221074396956ed0a2

... rest of output snipped...

I assume something about the =-- is magic and causing the rest of the
line to be passed to int().  Because the backtrace stops early and
I've
not delved into trac or Python too heavily, it'll be slow progress for
me to try to fix this - can anyone who knows the trac internals a bit
better suggest a fix?  I can obviously work around by poking the data
a
little bit.

This happened with a 0.11 svn build, and I upgraded to 0.11.1 just in
case, but I get the same error.

Thanks,

--
Matthew

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to