RT 4.2.7: application/octet-stream

Brian McNally <[email protected]>
Newsgroups gmane.comp.bug-tracking.request-tracker.devel
Message-ID <[email protected]>
Hi,

I'm running RT 4.2.7 and when I try and update ticket contents with 
certain text (for example, the output of `tree` on Linux) my message 
contents don't render in the web interface (or via email) and instead 
show up as:

"Message body not shown because it is not plain text."

And then the contents of my message are attached as type:

application/octet-stream

I've attached log output showing two errors, summarized as follows:

1. Expecting a byte string, but was passed characters

2. Encoding error: Cannot decode string with wide characters at 
/usr/lib64/perl5/Encode.pm

I've already tried upgrading from perl module Encode 2.60 to 2.62 
without luck. I'm not sure if this is a bug, or if this is something I 
need to handle specifically with some setting.

Thanks for your consideration,

--
Brian McNally
System Administrator, Genome Sciences
(206) 543-7363

-- 
RT Training - November 4-5 Los Angeles
http://bestpractical.com/training
RT_log.txt (text/plain, 4.8 KB)
Sep 25 11:30:53 rt RT: [31748] Expecting a byte string, but was passed characters  at /data/rt/gsits/sbin/../lib/RT/I18N.pm line 293.#012#01
1RT::I18N::SetMIMEEntityToEncoding(MIME::Entity=HASH(0x7f930a6bbd28), "utf-8") called at /data/rt/gsits/sbin/../lib/RT/I18N.pm line 170#012#
011RT::I18N::SetMIMEEntityToUTF8(MIME::Entity=HASH(0x7f930a6bbd28)) called at /data/rt/gsits/sbin/../lib/RT/Interface/Web.pm line 2525#012#0
11HTML::Mason::Commands::MakeMIMEEntity("Subject", undef, "Body", "> tree\x{a}.\x{a}\x{251c}\x{2500}\x{2500} Quote_690800702.html\x{a}\x{251
c}\x{2500}\x{2500} quote_690800702.pdf\x{a}\x{2514}\x{2500}\x{2500}"..., "Type", undef, "Interface", "Web") called at /data/rt/gsits/sbin/..
/lib/RT/Interface/Web.pm line 2299#012#011HTML::Mason::Commands::ProcessUpdateMessage("ARGSRef", HASH(0x7f930a7da0a0), "Actions", ARRAY(0x7f
930a5950a0), "TicketObj", RT::Ticket=HASH(0x7f930aece8a0)) called at /data/rt/gsits/share/html/Ticket/Display.html line 165#012#011HTML::Mas
on::Commands::__ANON__("TicketObj", RT::Ticket=HASH(0x7f930aece8a0), "Articles-Include-Article-Named", "", "UpdateCc", "", "SubmitTicket", "
Update Ticket", "Articles_Content", ...) called at /usr/local/share/perl5/HTML/Mason/Component.pm line 138#012#011HTML::Mason::Component::ru
n(HTML::Mason::Component::FileBased=HASH(0x7f930a739788), "TicketObj", RT::Ticket=HASH(0x7f930aece8a0), "Articles-Include-Article-Named", ""
, "UpdateCc", "", "SubmitTicket", "Update Ticket", ...) called at /usr/local/share/perl5/HTML/Mason/Request.pm line 1305#012#011eval {...} c
alled at /usr/local/share/perl5/HTML/Mason/Request.pm line 1295#012#011HTML::Mason::Request::comp(undef, undef, "TicketObj", RT::Ticket=HASH
(0x7f930aece8a0), "Articles-Include-Article-Named", "", "UpdateCc", "", "SubmitTicket", ...) called at /data/rt/gsits/share/html/Ticket/Upda
te.html line 303#012#011HTML::Mason::Commands::__ANON__("UpdateCc", "", "Articles-Include-Article-Named", "", "Articles_Content", "", "Submi
tTicket", "Update Ticket", "Status", ...) called at /usr/local/share/perl5/HTML/Maso

Sep 25 11:30:53 rt RT: [31748] Encoding error: Cannot decode string with wide characters at /usr/lib64/perl5/Encode.pm line 195.#012#012Stac
k:#012  [/usr/lib64/perl5/Encode.pm:195]#012  [/data/rt/gsits/sbin/../lib/RT/I18N.pm:731]#012  [/data/rt/gsits/sbin/../lib/RT/I18N.pm:300]#0
12  [/data/rt/gsits/sbin/../lib/RT/I18N.pm:170]#012  [/data/rt/gsits/sbin/../lib/RT/Interface/Web.pm:2525]#012  [/data/rt/gsits/sbin/../lib/
RT/Interface/Web.pm:2299]#012  [/data/rt/gsits/share/html/Ticket/Display.html:165]#012  [/data/rt/gsits/share/html/Ticket/Update.html:303]#0
12  [/data/rt/gsits/share/html/Ticket/autohandler:66]#012  [/data/rt/gsits/sbin/../lib/RT/Interface/Web.pm:691]#012  [/data/rt/gsits/sbin/..
/lib/RT/Interface/Web.pm:379]#012  [/data/rt/gsits/share/html/autohandler:53]#012 falling back to application/octet-stream

Sep 25 11:30:53 rt RT: [31748] Expecting a byte string, but was passed characters  at /data/rt/gsits/sbin/../lib/RT/Record.pm line 781.#012#
011RT::Record::_EncodeLOB(RT::Attachment=HASH(0x7f930af6e698), "> tree\x{a}.\x{a}\x{251c}\x{2500}\x{2500} Quote_690800702.html\x{a}\x{251c}\
x{2500}\x{2500} quote_690800702.pdf\x{a}\x{2514}\x{2500}\x{2500}"..., "application/octet-stream", undef) called at /data/rt/gsits/sbin/../li
b/RT/Attachment.pm line 198#012#011RT::Attachment::Create(RT::Attachment=HASH(0x7f930af6e698), "TransactionId", 1322525, "Attachment", MIME:
:Entity=HASH(0x7f930a6bbd28)) called at /data/rt/gsits/sbin/../lib/RT/Transaction.pm line 641#012#011RT::Transaction::_Attach(RT::Transactio
n=HASH(0x7f930983bc88), MIME::Entity=HASH(0x7f930a6bbd28)) called at /data/rt/gsits/sbin/../lib/RT/Transaction.pm line 163#012#011RT::Transa
ction::Create(RT::Transaction=HASH(0x7f930983bc88), "ObjectId", 58556, "ObjectType", "RT::Ticket", "TimeTaken", "", "Type", "Comment", ...) 
called at /data/rt/gsits/sbin/../lib/RT/Record.pm line 1694#012#011RT::Record::_NewTransaction(RT::Ticket=HASH(0x7f930aece8a0), "Type", "Com
ment", "Data", "No Subject", "TimeTaken", "", "MIMEObj", MIME::Entity=HASH(0x7f930a6bbd28), ...) called at /data/rt/gsits/sbin/../lib/RT/Tic
ket.pm line 1617#012#011RT::Ticket::_RecordNote(RT::Ticket=HASH(0x7f930aece8a0), "DryRun", 0, "BccMessageTo", "", "CcMessageTo", "", "NoteTy
pe", "Comment", ...) called at /data/rt/gsits/sbin/../lib/RT/Ticket.pm line 1460#012#011RT::Ticket::Comment(RT::Ticket=HASH(0x7f930aece8a0),
 "BccMessageTo", "", "CcMessageTo", "", "MIMEObj", MIME::Entity=HASH(0x7f930a6bbd28), "TimeTaken", "", ...) called at /data/rt/gsits/sbin/..
/lib/RT/Interface/Web.pm line 2351#012#011HTML::Mason::Commands::ProcessUpdateMessage("ARGSRef", HASH(0x7f930a7da0a0), "Actions", ARRAY(0x7f
930a5950a0), "TicketObj", RT::Ticket=HASH(0x7f930aece8a0)) called at /data/rt/gsits/share/html/Ticket/Display.html line 165#012#011HTML::Mas
on::Commands::__ANON__("TicketObj", RT::Ticket=HASH(0x7f930aece8a0), "Articles-Inclu
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.