Project

General

Profile

Actions

Bug #102375

closed

Data too long for column 'cookie' when inserting into index_stat_search

Added by Andreas Krämer 5 months ago. Updated 21 days ago.

Status:
Closed
Priority:
Should have
Category:
Indexed Search
Target version:
-
Start date:
2023-11-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi there,

today I updated a website to TYPO3 ELTS 10.4.41 and now the indexed_search throws the following error when performing a search request:

An exception occurred while executing 'INSERT INTO `index_stat_search` (`searchstring`, `searchoptions`, `feuser_id`, `cookie`, `IP`, `hits`, `tstamp`) VALUES (?, ?, ?, ?, ?, ?, ?)' with params ["...", "...", 123, "4acf8ddc34c4bd2f20fe09de9b95e1dd.a0434104194776105dcb902219b99f71af58d82724f5e7ea2eaac9d7e89d7ac3", "...", 4, 1700048704]: Data too long for column 'cookie' at row 1

I guess it is a combination of MySQL strict mode and the cookie security fix: https://github.com/typo3/typo3/commit/8fdec56561
Most likely TYPO3 11.5.33 and 12.4.8 are also affected (not tested).

Possible solutions:
  • Remove cookie column from index_stat_search (why is this stored anyway?)
  • Truncate cookie value after 32 chars
  • Increase size of cookie column

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #92993: Remove personalized search statistics from indexed searchClosedBenni Mack2020-12-04

Actions
Actions #1

Updated by Benjamin Franzke 5 months ago

  • Assignee set to Benjamin Franzke
Actions #2

Updated by Georg Ringer 5 months ago

thanks for the issue! this is a problem which only happens in v10 (ELTS) as the functionality has been removed with v11 (See #92993)

I am closing the issue - nevertheless should be fixed in the ELTS

Actions #3

Updated by Oliver Hader 5 months ago

Table index_stat_search (and the feature) was removed in TYPO3 v11. Thus, it seems to be ELTS only - up to and including TYPO3 version 10.

Actions #4

Updated by Oliver Hader 5 months ago

  • Related to Task #92993: Remove personalized search statistics from indexed search added
Actions #5

Updated by Christian Kuhn 21 days ago

  • Status changed from New to Closed

Hey.

I hope it's ok to close here since it affects an ELTS core version, only.

Actions

Also available in: Atom PDF