[rt-users] rt3.0.4, error displaying .txt attachments
matthew zeier
mrz at intelenet.net
Thu Jul 24 00:46:04 EDT 2003
oh, and this only happens on tickets that came in through the import. Newly
attached .txt files work just fine. helloworld.txt works and is newly
attached. domains.txt fails. ContentEncoding is the same. ContentType for
both is "text/plain".
Whether this helps or not I don't know.
mysql> select TransactionId, Filename, ContentEncoding from Attachments
where Filename = "helloworld.txt";
+---------------+----------------+-----------------+
| TransactionId | Filename | ContentEncoding |
+---------------+----------------+-----------------+
| 71899 | helloworld.txt | none |
+---------------+----------------+-----------------+
mysql> select TransactionId, Filename, ContentEncoding from Attachments
where Filename = "domains.txt";
+---------------+-------------+-----------------+
| TransactionId | Filename | ContentEncoding |
+---------------+-------------+-----------------+
| 66366 | domains.txt | none |
+---------------+-------------+-----------------+
1 row in set (7.36 sec)
----- Original Message -----
From: "matthew zeier" <mrz at intelenet.net>
To: <rt-users at lists.fsck.com>
Sent: Wednesday, July 23, 2003 9:33 PM
Subject: [rt-users] rt3.0.4, error displaying .txt attachments
>
> redhat 8.0, perl 5.8 (vendor), modperl1, mysql 4.0.14 (rpms)
>
>
> Imported a bunch of tickets and was spot checking them. I noticed that
> tickets with .txt attachments break when trying to display them. I gather
> the encoding type wasn't set during the import? .pdf, .doc and .xls
appear
> to work fine.
>
> If this is more appropriate for rt-devel, let me know.
>
> System error
>
> error: Unknown encoding '' at /opt/rt3/lib/RT/Attachment_Overlay.pm line
> 316
>
> context: ...
> 187: # whether they should generate a full stack trace (confess() and
> cluck())
> 188: # or simply report the caller's package (croak() and carp()),
> respectively.
> 189: # confess() and croak() die, carp() and cluck() warn.
> 190:
> 191: sub croak { die shortmess @_ }
> 192: sub confess { die longmess @_ }
> 193: sub carp { warn shortmess @_ }
> 194: sub cluck { warn longmess @_ }
> 195:
> ...
>
> code stack: /usr/lib/perl5/5.8.0/Carp.pm:191
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Encode.pm:171
> /opt/rt3/lib/RT/Attachment_Overlay.pm:316
> /opt/rt3/share/html/Ticket/Attachment/dhandler:65
> /opt/rt3/share/html/autohandler:163
>
> Unknown encoding '' at /opt/rt3/lib/RT/Attachment_Overlay.pm line 316
>
>
> Trace begun at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Exceptions.pm
line
> 131
> HTML::Mason::Exceptions::rethrow_exception('Unknown encoding \'\' at
> /opt/rt3/lib/RT/Attachment_Overlay.pm line 316^J') called at
> /usr/lib/perl5/5.8.0/Carp.pm line 191
> Carp::croak('Unknown encoding \'\'') called at
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Encode.pm line 171
> Encode::from_to('Domain: columbia-ga.a1-discount-hotels.com^JUsername:
> columbia-ga^JPassword:
>
> ... more stuff ...
>
> installed.^JAssigned IP number: 216.71.44.117^J^J', 'utf8', undef) called
at
> /opt/rt3/lib/RT/Attachment_Overlay.pm line 316
> RT::Attachment::OriginalContent('RT::Attachment=HASH(0x8db0144)') called
at
> /opt/rt3/share/html/Ticket/Attachment/dhandler line 65
> HTML::Mason::Commands::__ANON__ at
> /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Component.pm line 134
>
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8db420
> 0)') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line
> 1062
> eval {...}('HTML::Mason::Component::FileBased=HASH(0x8db4200)') called at
> /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 1056
> HTML::Mason::Request::comp(undef, undef) called at
> /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 752
>
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x
> 8db4704)') called at /opt/rt3/share/html/autohandler line 163
> HTML::Mason::Commands::__ANON__ at
> /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Component.pm line 134
>
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x90342b
> 8)') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line
> 1057
> eval {...}('HTML::Mason::Component::FileBased=HASH(0x90342b8)') called at
> /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 1056
> HTML::Mason::Request::comp(undef, undef, undef) called at
> /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 331
> eval {...}(undef, undef, undef) called at
> /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 331
> eval {...}(undef, undef, undef) called at
> /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 290
>
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x8db47
> 04)') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm
> line 134
> eval {...}('HTML::Mason::Request::ApacheHandler=HASH(0x8db4704)') called
at
> /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 134
>
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandl
> er=HASH(0x8db4704)') called at
> /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 792
>
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(
> 0x92a2eb8)', 'Apache=SCALAR(0x91b15e0)') called at /opt/rt3/bin/webmux.pl
> line 118
> RT::Mason::handler('Apache=SCALAR(0x91b15e0)') called at /dev/null line 0
> eval {...}('Apache=SCALAR(0x91b15e0)') called at /dev/null line 0
>
>
>
>
> --
> matthew zeier | "Nothing in life is to be feared.
> InteleNet Communications, Inc. | It is only to be understood."
> (949) 784-7904 | - Marie Curie
>
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
>
> Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
>
More information about the rt-users
mailing list