Bug #87006

A TypeError in scheduler module after adding a new task

Added by Dima Nozdrin 10 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
scheduler
Start date:
2018-11-26
Due date:
% Done:

100%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

blob seems to be not an appropriate type for serialized_task_object column in tx_scheduler_task table. As a result when saving a new task in a scheduler module an error

(1/1) TypeError get_class() expects parameter 1 to be object, boolean given
is thrown in /var/www/html/public/typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php line 909
In case blob is changed to mediumblob it starts to work.

1543243647788.jpg View (364 KB) Dima Nozdrin, 2018-11-26 15:47

Associated revisions

Revision d7065b34 (diff)
Added by Benni Mack 10 months ago

[BUGFIX] Enlarge scheduler object DB field

The serialized PHP object is stored within the database field
"serialized_task_object". When serializing this could lead to several
issues.

One particular issue is that the object has lots of data or dependencies,
it cannot be stored at all in this database field.

Although we know that this implementation detail of scheduler is a rather
bad idea, we can only fix this by enlarging the field from "blob" to
"mediumblob" for now.

Resolves: #87006
Releases: master, 8.7
Change-Id: I2b335f258fe18b494033bde28eff76f2e67d34bb
Reviewed-on: https://review.typo3.org/58953
Tested-by: TYPO3com <>
Reviewed-by: Riny van Tiggelen <>
Reviewed-by: Oliver Klee <>
Reviewed-by: Georg Ringer <>
Tested-by: Georg Ringer <>
Reviewed-by: Andreas Fernandez <>
Reviewed-by: Markus Klein <>
Tested-by: Markus Klein <>

Revision f64e7aef (diff)
Added by Benni Mack 10 months ago

[BUGFIX] Enlarge scheduler object DB field

The serialized PHP object is stored within the database field
"serialized_task_object". When serializing this could lead to several
issues.

One particular issue is that the object has lots of data or dependencies,
it cannot be stored at all in this database field.

Although we know that this implementation detail of scheduler is a rather
bad idea, we can only fix this by enlarging the field from "blob" to
"mediumblob" for now.

Resolves: #87006
Releases: master, 8.7
Change-Id: I2b335f258fe18b494033bde28eff76f2e67d34bb
Reviewed-on: https://review.typo3.org/58955
Reviewed-by: Markus Klein <>
Tested-by: Markus Klein <>
Tested-by: TYPO3com <>

History

#1 Updated by Gerrit Code Review 10 months ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58953

#2 Updated by Gerrit Code Review 10 months ago

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58955

#3 Updated by Benni Mack 10 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#4 Updated by Benni Mack 5 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF