[rt-users] Error when forwarding a message with an attachment

Kevin Falcone falcone at bestpractical.com
Wed Jul 14 10:07:39 EDT 2010


On Wed, Jul 14, 2010 at 05:20:37PM +1000, John Chenny Lim wrote:
>    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

>                                             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(0x55555ad06e30)', 'Cc', '',
>    'ForwardAndReturn', 'Forward Message and Return', 'To', 'spam at 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 at 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(0x5555598c9120)',
>    'ForwardAndReturn', 'Forward Message and Return', 'QuoteTransaction', 1198169, 'id', 96322,
>    'To', 'spam at 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 at 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 at 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(0x5555589f9a90)', 'Cc',
>    '', 'ForwardAndReturn', 'Forward Message and Return', 'To', 'spam at 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 at 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(0x555559f8c000)') called
>    at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 168
> 
>    HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=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
> 
> 

> 
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100714/52186213/attachment.sig>


More information about the rt-users mailing list