[rt-devel] Re: [rt-users] Remaining issues in RT 3.0.2's handling of international characters

Dirk Pape pape-rt at inf.fu-berlin.de
Fri May 23 11:11:26 EDT 2003


Hello Autrijus,

--Am Freitag, 23. Mai 2003 20:28 Uhr +0800 schrieb Autrijus Tang 
<autrijus at autrijus.org>:

> I have generated a diff against RT 3.0.2 from my current snapshot
> (which contains more unrelated changes, in particular Attachment-
> related transcoding logic that will get redone) for Jesse to merge.
> Interested people may peek at it at:
>
>     http://aut.dyndns.org/tmp/rt-trunk.zip
>
> I'll start testing UTF8 characters via the mail gateway now.

Thank you. I applied all the patches of your trunk and wil go into testing 
now.

First: there is one issue which leads to a system error while guessing 
encodings of some transaction's attachments or messages.

I attached a raw dump.

I could workaround the problem by changing line 66 of 
html/Ticket/Elements/ShowTransaction from

         if (eval { require Encode::Guess; 1 }) {

to
         if (eval { require Encode::Guess; 0 }) {

but this is definitely not a fix.

Will this only happen on by older (unpatched RT-versions) corrupted tickets?

Thanks,
Dirk
-------------- next part --------------
iso-8859-15 or iso-8859-1 or utf8 at 
/export/perl-5.8.0/lib/5.8.0/i686-linux/Encode.pm line 156


Trace begun at 
/export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/Exceptions.pm line 128
HTML::Mason::Exceptions::rethrow_exception('iso-8859-15 or iso-8859-1 or 
utf8 at /export/perl-5.8.0/lib/5.8.0/i686-linux/Encode.pm line 156^J') 
called at /export/perl-5.8.0/lib/5.8.0/Carp.pm line 191
Carp::croak('iso-8859-15 or iso-8859-1 or utf8') called at 
/export/perl-5.8.0/lib/5.8.0/i686-linux/Encode/Guess.pm line 53
Encode::Guess::decode('Encode::Guess=HASH(0x93b4d34)', 'zur 
TicketHistoryAnsicht:^J^JSebastian soll jetzt einfach auf die 
M-CM-^CM-BM-^\berschrift "Historie" klicken, die ^JEinstellung 
hM-CM-^CM-BM-$lt fM-CM-^CM-BM-<r eine Session.^J^JDirk.^J', 0) called at 
/export/perl-5.8.0/lib/5.8.0/i686-linux/Encode.pm line 156
Encode::decode('Guess', 'zur TicketHistoryAnsicht:^J^JSebastian soll jetzt 
einfach auf die M-CM-^CM-BM-^\berschrift "Historie" klicken, die 
^JEinstellung hM-CM-^CM-BM-$lt fM-CM-^CM-BM-<r eine Session.^J^JDirk.^J') 
called at /export/rt3/share/html/Ticket/Elements/ShowTransaction line 70
HTML::Mason::Commands::__ANON__('Ticket', 'RT::Ticket=HASH(0x9294980)', 
'Transaction', 'RT::Transaction=HASH(0x94ec634)', 'ShowHeaders', undef, 
'Collapsed', undef, 'RowNum', 1, 'ShowTitleBarCommands', 1) called at 
/export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/Component.pm line 133
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x94d5c
cc)', 'Ticket', 'RT::Ticket=HASH(0x9294980)', 'Transaction', 
'RT::Transaction=HASH(0x94ec634)', 'ShowHeaders', undef, 'Collapsed', 
undef, 'RowNum', 1, 'ShowTitleBarCommands', 1) called at 
/export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/Request.pm line 1056
eval {...}('HTML::Mason::Component::FileBased=HASH(0x94d5ccc)', 'Ticket', 
'RT::Ticket=HASH(0x9294980)', 'Transaction', 
'RT::Transaction=HASH(0x94ec634)', 'ShowHeaders', undef, 'Collapsed', 
undef, 'RowNum', 1, 'ShowTitleBarCommands', 1) called at 
/export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/Request.pm line 1050
HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x8402
804)', 'ShowTransaction', 'Ticket', 'RT::Ticket=HASH(0x9294980)', 
'Transaction', 'RT::Transaction=HASH(0x94ec634)', 'ShowHeaders', undef, 
'Collapsed', undef, 'RowNum', 1, 'ShowTitleBarCommands', 1) called at 
/export/rt3/local/html/Ticket/Elements/ShowHistory line 73
HTML::Mason::Commands::__ANON__('Ticket', 'RT::Ticket=HASH(0x9294980)', 
'Collapsed', undef, 'ShowHeaders', undef, 'MI_ToggleHistory', undef) called 
at /export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/Component.pm line 133
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x9282d
80)', 'Ticket', 'RT::Ticket=HASH(0x9294980)', 'Collapsed', undef, 
'ShowHeaders', undef, 'MI_ToggleHistory', undef) called at 
/export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/Request.pm line 1056
eval {...}('HTML::Mason::Component::FileBased=HASH(0x9282d80)', 'Ticket', 
'RT::Ticket=HASH(0x9294980)', 'Collapsed', undef, 'ShowHeaders', undef, 
'MI_ToggleHistory', undef) called at 
/export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/Request.pm line 1050
HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x8402
804)', '/Ticket/Elements/ShowHistory', 'Ticket', 
'RT::Ticket=HASH(0x9294980)', 'Collapsed', undef, 'ShowHeaders', undef, 
'MI_ToggleHistory', undef) called at 
/export/rt3/local/html/Ticket/Display.html line 37
HTML::Mason::Commands::__ANON__('id', 2975, 'id', 2975) called at 
/export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/Component.pm line 133
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8bdb4
5c)', 'id', 2975, 'id', 2975) called at 
/export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/Request.pm line 1056
eval {...}('HTML::Mason::Component::FileBased=HASH(0x8bdb45c)', 'id', 2975, 
'id', 2975) called at 
/export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/Request.pm line 1050
HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x8402
804)', 'HTML::Mason::Component::FileBased=HASH(0x8bdb45c)', 'id', 2975, 
'id', 2975) called at 
/export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/Request.pm line 746
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0
x8402804)', 'id', 2975) called at /export/rt3/share/html/autohandler line 
160
HTML::Mason::Commands::__ANON__('id', 2975) called at 
/export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/Component.pm line 133
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8be26
2c)', 'id', 2975) called at 
/export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/Request.pm line 1051
eval {...}('HTML::Mason::Component::FileBased=HASH(0x8be262c)', 'id', 2975) 
called at /export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/Request.pm line 
1050
HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x8402
804)', 'HASH(0x925706c)', 
'HTML::Mason::Component::FileBased=HASH(0x8be262c)', 'id', 2975) called at 
/export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/Request.pm line 332
eval {...}('HTML::Mason::Request::ApacheHandler=HASH(0x8402804)', 
'HASH(0x925706c)', 'HTML::Mason::Component::FileBased=HASH(0x8be262c)', 
'id', 2975) called at 
/export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/Request.pm line 332
eval {...}('HTML::Mason::Request::ApacheHandler=HASH(0x8402804)', 
'HASH(0x925706c)', 'HTML::Mason::Component::FileBased=HASH(0x8be262c)', 
'id', 2975) called at 
/export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/Request.pm line 292
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x8402
804)') called at 
/export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 134
eval {...}('HTML::Mason::Request::ApacheHandler=HASH(0x8402804)') called at 
/export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 134
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHand
ler=HASH(0x8402804)') called at 
/export/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 783
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH
(0x83fe1e4)', 'Apache=SCALAR(0x92697a4)') called at 
/export/rt3/bin/webmux.pl line 118
RT::Mason::handler('Apache=SCALAR(0x92697a4)') called at /dev/null line 0
eval {...}('Apache=SCALAR(0x92697a4)') called at /dev/null line 0 


More information about the Rt-devel mailing list