[Rt-devel] minor issue report

Viktor svitter at list.ru
Fri Oct 5 09:51:28 EDT 2007


Here I refer to 3.6.4 version of RT.

RT likes to highlight text paragraphs beginning with '>' (as far as I found out, it uses Text::Quoted to turn the text into a nested data structure, according to quotation levels).

MASON or some code in RT codebase disables nesting of 'comp' calls deeper than 32 of them. m->comp calls are used to process intermediate results of previous processing of quoted text, but they fail at some over-Quoted texts.

Alas, I am not sure of the best practice fix for it at the time being. The fix should probably catch that exception there with some handler, rolling back to 'more plain' nested data structure. Or it can treat over-Quoted texts just as binary attachments with content-disposition: attachment.

I hope for some feedback. 'Depth' is tracked at rt3/share/html/Ticket/Elements/ShowTransactionAttachments but has no reasonable use at rt3/share/html/Ticket/Elements/ShowMessageStanza (except for highlighting different quotation levels).
The fix should be trivial, I am sure.


Here's the beginning of 'raw error' output.
error:   32 levels deep in component stack (infinite recursive call?)
  context:    
... 
  57:    }
  58:    elsif ( ref $stanza eq "HASH" ) {
  59:    my $content = $stanza->{raw};
  60:    RT::Interface::Web::EscapeUTF8(\$content);
  61:    $m->comp('/Elements/Callback', content => \$content, %ARGS);


More information about the Rt-devel mailing list