we have noticed, our OTRS (3.0.11) has troubles parsing complex HTML attachments. Depending on the complexity of the attachment, the parsing takes up to several minutes (!). We have recently received an email with several HTML tables, span-, and pre-tags (not nested, but after each other) which lasts about 5 minutes to be displayed by OTRS.
I've identified Kernel::Output::HTML::Layout::RichTextDocumentServe() as the subroutine which produces the huge delay (called by Kernel::Modules::AgentTicketAttachment). The following part causes the major delay (about 90%?):
Code: Select all
# safety check
if ( !$Param{LoadInlineContent} ) {
$Param{Data}->{Content} = $Self->RichTextDocumentSafetyCheck(
String => $Param{Data}->{Content},
);
}
Thank's.
Kind regards,
Manuel