[TYPO3-core] RFC #12132: Bug: Scheduler: Check for incomplete objects before using them

Francois Suter fsu-lists at cobweb.ch
Fri Oct 9 12:46:10 CEST 2009


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=12132

Branches:
Trunk

Problem:
The Scheduler stores a task in the database along with the serialized 
object needed to execute it. It can happen that the class for this 
object becomes unavailable (e.g. the extension providing it has been 
uninstalled) so that the object cannot be properly unserialized anymore. 
This will cause errors as soon as some method is called on that object.

Solution:
Introduce proper tests whenever a task object is unserialized and 
display errors, throw exceptions or interrupt process as appropriate.

Also attached a screenshot of the list view with the new error message.

Notes:
The solution to this problem is pretty simple. However it has quite a 
large impact on the application logic. Thus the attached patch is rather 
large, as it contains quite a bit of code reorganization, with some 
(more) proper initializations and a bit of cleanup (and even a minor 
styling adjustement).

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug12132.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20091009/34baa3fe/attachment-0001.txt 


More information about the TYPO3-team-core mailing list