[rt-users] internal ticket error.

Ruslan U. Zakirov cubic at acronis.ru
Tue Sep 30 07:49:45 EDT 2003


Einar Fagertun wrote:

>Does anyone recognise this error and what causes it?
>
>It occurs on some tickets when u try to open them (It shows the error message below rather than the content of the ticket)
>
>Line 187 is marked red in the errormessage 
>
>-----------------------------Error------------------------------------------------------------
>
>System error
>
>error:  Internal Error () on 'dvs det skjærer seg ikke bare pÃ¥ importerte meldinger. Jeg kan altsÃ' at /usr/lib/perl5/site_perl/5.8.0/Text/Quoted.pm line 187.
> 
>context:  ...   
>183:  $lines[-1]{presig} .= $lines[-1]{quoter} = defn $2; 
>184:  $lines[-1]{presig} .= $lines[-1]{quotespace} = defn $3; 
>185:  $lines[-1]{hang} = defn(Hang->new($_)); 
>186:   
>187:  s/([ \t]*)(.*?)(\s*)$// 
>188:  or die "Internal Error ($@) on '$_'"; 
>189:  $lines[-1]{hangspace} = defn $1; 
>190:  $lines[-1]{text} = defn $2; 
>191:  $lines[-1]{empty} = $lines[-1]{hang}->empty() && $2 !~ /\S/; 
>...   
> 
>code stack:  /usr/lib/perl5/site_perl/5.8.0/Text/Quoted.pm:187
>/usr/lib/perl5/site_perl/5.8.0/Text/Quoted.pm:63
>/opt/rt3/share/html/Ticket/Elements/ShowTransaction:62
>/opt/rt3/share/html/Ticket/Elements/ShowHistory:65
>/opt/rt3/share/html/Ticket/Display.html:37
>/opt/rt3/share/html/autohandler:182
> 
>raw error
>
>  
>
It's an perl or Qouted.pm bug. On some text this s///; operator return 
false, but in fact there is no error.
You could change Quoted.pm like this:

187: s/([ \t]*)(.*?)(\s*)$//;
188: die "Internal Error ($@) on '$_'" if ($@); 

I don't remember have I send bugreport somewhere...
        Best regards. Ruslan.





More information about the rt-users mailing list