Flood events names get sometimes bigger than the 64 allowed characters in database

Created on 5 June 2023, almost 2 years ago

Problem/Motivation

We get this in the Drupal logs:

SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'event' at row 1: INSERT INTO "flood" ("event", "identifier", "timestamp", "expiration") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array
(
[:db_insert_placeholder_0] => captcha_after_submit_threshold_node-madd-article-form--poQoSr_8rsg
[:db_insert_placeholder_1] 

Steps to reproduce

Simply create a captcha_after protected form with a very long ID.

Proposed resolution

Reduce length of the various flood events names.

Remaining tasks

Development.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France mably

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024