[Rt-devel] mailgate throws up on valid message
Ruediger Riediger
ruediger.riediger at sun.com
Sun Nov 21 06:14:48 EST 2004
Hello RT gurus,
-> resend as we need urgently a solution
this happened on RT3.0.12 - any idea what might have caused this?
We have seen this now several times, e.g. with the attached phishing
spam - but also valid messages. This is 100% reproducible on two
systems, running RT3.0.5rc3 on perl 5.6.1 and RT3.0.12 on perl 5.8.4
with apache1.3+perl_mod.
procmail: Executing "rt-mailgate,--queue,Incident
Reports,--action,correspond,--url,https://localhost/rt3/"
RT server error.
The RT server which handled your email did not behave as expected. It
said:
[...]
no value sent for required parameter 'message'
Trace begun at
/var/opt/rt3/mason_data/obj/standard/REST/1.0/NoAuth/mail-gateway line 22
HTML::Mason::Commands::__ANON__ at
/opt/perl/lib/site_perl/5.8.4/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x1e6d784)')
called at /opt/perl/lib/site_perl/5.8.4/HTML/Mason/Request.pm line 1069
eval {...} at /opt/perl/lib/site_perl/5.8.4/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, undef) called at
/opt/perl/lib/site_perl/5.8.4/HTML/Mason/Request.pm line 338
eval {...} at /opt/perl/lib/site_perl/5.8.4/HTML/Mason/Request.pm line 338
eval {...} at /opt/perl/lib/site_perl/5.8.4/HTML/Mason/Request.pm line 297
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x2016e88)')
called at /opt/perl/lib/site_perl/5.8.4/HTML/Mason/ApacheHandler.pm line 134
eval {...} at /opt/perl/lib/site_perl/5.8.4/HTML/Mason/ApacheHandler.pm
line
134HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x2016e88)')
called at /opt/perl/lib/site_perl/5.8.4/HTML/Mason/ApacheHandler.pm line 792
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0xd51298)',
'Apache=SCALAR(0x21c62cc)') called at /opt/rt3/bin/webmux.pl line 138
eval {...} at /opt/rt3/bin/webmux.pl line 138
RT::Mason::handler('Apache=SCALAR(0x21c62cc)') called at /dev/null line 0
eval {...} at /dev/null line 0
The file
/var/opt/rt3/mason_data/obj/standard/REST/1.0/NoAuth/mail-gateway is
attached.
Investigating the issue, we found that the REST gateway suddenly shut
down during message transmission, therefore leaving "message" undefined.
The script continues to run... We have no clue why this happens.
Best regards,
Ruediger Riediger
--
Dr. Ruediger Riediger Sun Microsystems GmbH
NSG - SunCERT Komturstr. 18a
mailto:Ruediger.Riediger at Sun.com D-12099 Berlin
------------------------------------------------------------------------
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
------------------------------------------------------------------------
PGP 2048RSA/0x2C5020E9 964C E189 0FF0 8882 2BAB 65E2 6912 1FF2
------------------------------------------------------------------------
-------------- next part --------------
# MASON COMPILER ID: 2097!28163
package HTML::Mason::Commands;
use strict;
use vars qw($m $r %session);
HTML::Mason::Component::FileBased->new(
'code' => sub {
HTML::Mason::Exception::Params->throw
( error =>
"Odd number of parameters passed to component expecting name/value pairs"
) if @_ % 2;
my %ARGS = @_;
my ( $message, $queue, $action, $ticket );
{
my %pos;
for ( my $x = 0; $x < @_; $x += 2 )
{
$pos{ $_[$x] } = $x + 1;
}
foreach my $arg ( qw( message ) )
{
HTML::Mason::Exception::Params->throw
( error => "no value sent for required parameter '$arg'" )
unless exists $pos{$arg};
}
#line 25 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
$message = $_[ $pos{'message'} ];
#line 26 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
$queue = exists $pos{'queue'} ? $_[ $pos{'queue'} ] : 1;
#line 27 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
$action = exists $pos{'action'} ? $_[ $pos{'action'} ] : "correspond";
#line 28 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
$ticket = exists $pos{'ticket'} ? $_[ $pos{'ticket'} ] : undef;
}
$m->debug_hook( $m->current_comp->path ) if ( %DB:: );
#line 29 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
use RT::Interface::Email;
my ( $status, $error, $Ticket ) = RT::Interface::Email::Gateway(\%ARGS);
#line 1 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
# BEGIN LICENSE BLOCK
#
# Copyright (c) 1996-2003 Jesse Vincent <jesse at bestpractical.com>
#
# (Except where explictly superceded by other copyright notices)
#
# This work is made available to you under the terms of Version 2 of
# the GNU General Public License. A copy of that license should have
# been provided with this software, but in any event can be snarfed
# from www.gnu.org.
#
# This work is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# Unless otherwise specified, all modifications, corrections or
# extensions to this work which alter its source code become the
# property of Best Practical Solutions, LLC when submitted for
# inclusion in the work.
#
#
# END LICENSE BLOCK
if ($status == -75 ) {
$m->print( 'temporary failure
' );
#line 37 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
}
elsif ($status == 1) {
$m->print( 'ok
' );
#line 40 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
if ( $Ticket->Id ) {
$m->print( 'Ticket: ' );
#line 41 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
$m->print( $m->interp->apply_escapes( (join '', ( $Ticket->Id )), 'h' ) );
#line 41 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
$m->print( '
Queue: ' );
#line 42 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
$m->print( $m->interp->apply_escapes( (join '', ( $Ticket->QueueObj->Name )), 'h' ) );
#line 42 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
$m->print( '
Owner: ' );
#line 43 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
$m->print( $m->interp->apply_escapes( (join '', ( $Ticket->OwnerObj->Name )), 'h' ) );
#line 43 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
$m->print( '
Status: ' );
#line 44 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
$m->print( $m->interp->apply_escapes( (join '', ( $Ticket->Status )), 'h' ) );
#line 44 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
$m->print( '
Subject: ' );
#line 45 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
$m->print( $m->interp->apply_escapes( (join '', ( $Ticket->Subject )), 'h' ) );
#line 45 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
$m->print( '
Requestor: ' );
#line 46 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
$m->print( $m->interp->apply_escapes( (join '', ( $Ticket->Requestors->MemberEmailAddressesAsString )), 'h' ) );
#line 46 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
$m->print( '
' );
#line 47 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
}
} else {
$m->print( 'not ok - ' );
#line 49 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
$m->print( $m->interp->apply_escapes( (join '', ($error)), 'h' ) );
#line 49 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
$m->print( '
' );
#line 50 /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway
}
return undef;
},
'compiler_id' => '2097!28163',
'declared_args' => {
'$action' => { default => ' "correspond"' },
'$message' => { default => undef },
'$queue' => { default => ' 1' },
'$ticket' => { default => ' undef' }
},
'flags' => {
inherit => undef # inhibit UTF8 conversion done in /autohandler
},
'load_time' => 1093015834,
'object_size' => 4565,
)
;
-------------- next part --------------
An embedded message was scrubbed...
From: aw-confirm at ebay.com
Subject: TKO NOTICE: Please verify your account
Date: Sun, 21 Nov 2004 07:06:51 +0000
Size: 8407
Url: http://lists.bestpractical.com/pipermail/rt-devel/attachments/20041121/77bed805/bad-spam.eml
More information about the Rt-devel
mailing list