Error when forwarding a message with an attachment

Hi all,

I am having problems forwarding messages with attachment. I am using RT
Request Tracker 3.6. Below are the error dumps:

System error

error:

Can’t call method “ContentAsMIME” on an undefined value at
/usr/local/rt3.6/lib/RT/Interface/Email.pm line 300.

context:

296:

my $txn = shift;

297:

my %args = ( To => ‘’, Cc => ‘’, Bcc => ‘’, @_ );

298:

299:

my $main_content = $txn->ContentObj;

300:

my $entity = $main_content->ContentAsMIME;

301:

302:

if ( $main_content->Parent ) {

303:

main content is not top most entity, we shouldn’t loose

304:

From/To/Cc headers that are on a top part

code stack:

/usr/local/rt3.6/lib/RT/Interface/Email.pm:300
/usr/local/rt3.6/share/html/Ticket/Forward.html:121
/usr/local/rt3.6/share/html/autohandler:374

Raw error details:

Can’t call method “ContentAsMIME” on an undefined value at
/usr/local/rt3.6/lib/RT/Interface/Email.pm line 300.

Trace begun at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Exceptions.pm line
129

HTML::Mason::Exceptions::rethrow_exception(‘Can’t call method
"ContentAsMIME" on an undefined value at
/usr/local/rt3.6/lib/RT/Interface/Email.pm line 300.^J’) called at
/usr/local/rt3.6/lib/RT/Interface/Email.pm line 300

RT::Interface::email::ForwardTransaction(‘RT::Transaction=HASH(0x55555ad06e3
0)’, ‘Cc’, ‘’, ‘ForwardAndReturn’, ‘Forward Message and Return’, ‘To’,
‘spam@support.trendmicro.com’, ‘id’, 96322, ‘QuoteTransaction’, 1198169,
‘Bcc’, ‘’) called at /usr/local/rt3.6/share/html/Ticket/Forward.html line
121

HTML::Mason::Commands::ANON(‘ForwardAndReturn’, ‘Forward Message and
Return’, ‘QuoteTransaction’, 1198169, ‘id’, 96322, ‘To’,
‘spam@support.trendmicro.com’, ‘Cc’, ‘’, ‘Bcc’, ‘’) called at
/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135

HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x555559
8c9120)’, ‘ForwardAndReturn’, ‘Forward Message and Return’,
‘QuoteTransaction’, 1198169, ‘id’, 96322, ‘To’,
‘spam@support.trendmicro.com’, ‘Cc’, ‘’, ‘Bcc’, ‘’) called at
/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1256

eval {…} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1250

HTML::Mason::Request::comp(undef, undef, undef, ‘ForwardAndReturn’, ‘Forward
Message and Return’, ‘QuoteTransaction’, 1198169, ‘id’, 96322, ‘To’,
‘spam@support.trendmicro.com’, ‘Cc’, ‘’, ‘Bcc’, ‘’) called at
/usr/local/rt3.6/share/html/autohandler line 374

HTML::Mason::Commands::ANON(‘Cc’, ‘’, ‘ForwardAndReturn’, ‘Forward
Message and Return’, ‘To’, ‘spam@support.trendmicro.com’, ‘id’, 96322,
‘QuoteTransaction’, 1198169, ‘Bcc’, ‘’) called at
/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135

HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x555558
9f9a90)’, ‘Cc’, ‘’, ‘ForwardAndReturn’, ‘Forward Message and Return’, ‘To’,
‘spam@support.trendmicro.com’, ‘id’, 96322, ‘QuoteTransaction’, 1198169,
‘Bcc’, ‘’) called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm
line 1251

eval {…} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1250

HTML::Mason::Request::comp(undef, undef, undef, ‘Cc’, ‘’,
‘ForwardAndReturn’, ‘Forward Message and Return’, ‘To’,
‘spam@support.trendmicro.com’, ‘id’, 96322, ‘QuoteTransaction’, 1198169,
‘Bcc’, ‘’) called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm
line 460

eval {…} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 460

eval {…} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 412

HTML::Mason::Request::exec(‘HTML::Mason::Request::ApacheHandler=HASH(0x55555
9f8c000)’) called at
/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 168

HTML::Mason::Request::ApacheHandler::exec(‘HTML::Mason::Request::ApacheHandl
er=HASH(0x555559f8c000)’) called at
/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 826

HTML::Mason::ApacheHandler::handle_request(‘HTML::Mason::ApacheHandler=HASH(
0x55555808bf50)’, ‘Apache2::RequestRec=SCALAR(0x55555ad154a0)’) called at
/usr/local/rt3.6/bin/webmux.pl line 125

eval {…} at /usr/local/rt3.6/bin/webmux.pl line 125

RT::Mason::handler(‘Apache2::RequestRec=SCALAR(0x55555ad154a0)’) called at
-e line 0

eval {…} at -e line 0

John Lim

Hi,

There is no such feature as Forward in RT 3.6, it’s in RT 3.8.On Wed, Jul 14, 2010 at 11:20 AM, John Chenny Lim jc.lim@vicscouts.asn.auwrote:

Hi all,

I am having problems forwarding messages with attachment. I am using RT
Request Tracker 3.6. Below are the error dumps:

System error

error:

Can’t call method “ContentAsMIME” on an undefined value at
/usr/local/rt3.6/lib/RT/Interface/Email.pm line 300.

context:

296:

my $txn = shift;

297:

my %args = ( To => ‘’, Cc => ‘’, Bcc => ‘’, @_ );

298:

299:

my $main_content = $txn->ContentObj;

300:

my $entity = $main_content->ContentAsMIME;

301:

302:

if ( $main_content->Parent ) {

303:

main content is not top most entity, we shouldn’t loose

304:

From/To/Cc headers that are on a top part

code stack:

/usr/local/rt3.6/lib/RT/Interface/Email.pm:300
/usr/local/rt3.6/share/html/Ticket/Forward.html:121
/usr/local/rt3.6/share/html/autohandler:374

Best regards, Ruslan.

I am having problems forwarding messages with attachment. I am using RT Request Tracker 3.6.
Below are the error dumps:

3.6 didn’t have a ForwardTransaction function, did you backport some
code or are you running a different function.

-kevin