[otrs-cvs] otrs/Kernel Scheduler.pm,1.20,1.20.2.1
"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-serv31936/Kernel
Modified Files:
Tag: rel-3_1
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.20
retrieving revision 1.20.2.1
diff -2 -u -d -r1.20 -r1.20.2.1
--- Scheduler.pm 29 Mar 2012 07:28:47 -0000 1.20
+++ Scheduler.pm 9 Jan 2013 18:21:30 -0000 1.20.2.1
@@ -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 {
@@ -271,5 +282,5 @@
);
- # retrun failure if no task type is sent
+ # return failure if no task type is sent
return;
}
@@ -282,5 +293,5 @@
);
- # retrun error if task data is undefined
+ # return error if task data is undefined
return;
}
@@ -298,5 +309,5 @@
);
- # retrun failure if task registration fails
+ # return failure if task registration fails
return;
}
---------------------------------------------------------------------
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