[otrs-cvs] otrs/Kernel Scheduler.pm,1.24,1.25
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/otrs/Kernel
In directory lancelot:/tmp/cvs-serv31992/Kernel
Modified Files:
Scheduler.pm
Log Message:
Fixed bug#9030 - Wrong handling of Invalid YAML in Scheduler Tasks.
Author: cr
Index: Scheduler.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Scheduler.pm,v
retrieving revision 1.24
retrieving revision 1.25
diff -2 -u -d -r1.24 -r1.25
--- Scheduler.pm 20 Nov 2012 14:26:26 -0000 1.24
+++ Scheduler.pm 9 Jan 2013 18:21:50 -0000 1.25
@@ -1,5 +1,5 @@
# --
# Kernel/Scheduler.pm - The otrs Scheduler Daemon
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
# --
# $Id$
@@ -182,4 +182,15 @@
}
+ if ( !IsHashRefWithData( $TaskData{Data} ) ) {
+ $Self->{LogObject}->Log(
+ Priority => 'error',
+ Message => 'Got invalid data inside task data!',
+ );
+ $Self->{TaskManagerObject}->TaskDelete( ID => $TaskItem->{ID} );
+
+ # skip if cant get task data -> data
+ next TASKITEM;
+ }
+
# create task handler object
my $TaskHandlerObject = eval {
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log