[rt-users] rt-client 0.4 bug for uploading attachments

Thierry Thelliez thierry.thelliez.tech at gmail.com
Thu Mar 15 20:35:50 EDT 2012


Today I found a bug in rt-client when trying to programmatically
create a ticket.  Uploaded binary files were corrupted.  In fact the
two last bytes were missing.  The bug is in client.rb.
Sorry, I just closed my VM but it is towards the end of the file at
the line including:

body << File.read(v)

An empty line should be added just after the file content. Here is my fix:

body << File.read(v)
body << "\r\n"



Cheers,
Thierry Thelliez



More information about the rt-users mailing list