Project

General

Profile

Actions

Bug #88270

closed

MySQL error on SeparateSysHistoryFromSysLogUpdate wizard using pdo_mysql driver

Added by Patrick Broens almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Install Tool
Target version:
-
Start date:
2019-05-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When using the pdo_mysql driver, integers in the database are returned as strings. Using a mysqli driver, the integers are returned as integers.

The upgrade wizard SeparateSysHistoryFromSysLogUpdate does not do proper type casting, and will return an error when passing a uid as string to a method which expects an integer.

Here is the error:

Argument 2 passed to TYPO3\\CMS\\Core\\DataHandling\\History\\RecordHistoryStore::addRecord() must be of the type int, string given, called in path_to_typo3/typo3/sysext/install/Classes/Updates/SeparateSysHistoryFromSysLogUpdate.php on line 165
Actions #1

Updated by Gerrit Code Review almost 5 years 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/c/Packages/TYPO3.CMS/+/60827

Actions #2

Updated by Gerrit Code Review almost 5 years ago

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

Actions #3

Updated by Gerrit Code Review almost 5 years ago

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

Actions #4

Updated by Christian Eßl almost 5 years ago

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

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF