#110244Linkvalidator aborts with "Data too long for column 'headline'"
Description
Summary
The “Check for broken links” task can crash entirely with Data too long for column ‘headline’ (tx_linkvalidator_link.headline is varchar(255)). LinkAnalyzer::checkLinks() writes BackendUtility::getRecordTitle()’s result into it unchecked. Reproducible with core’s own default tt_content TCA (label_alt => ‘subheader,bodytext’): any content element with an empty header (e.g. hidden headline layout) and a long bodytext containing a broken link takes down the whole run, not just that one record.
Steps to reproduce
- tt_content record: empty header; bodytext > ~500 chars incl. a broken link.
- Run the “Check for broken links” scheduler task.
Root cause
Regression from #108581 (v14.2, record-type-specific labels). getRecordTitle() used to stop at the first non-empty label_alt field when the primary label is empty (see the break in the 12.4/13.4 branches). Since the rewrite, it always implodes all non-empty alt fields in that case – effectively label_alt_force is now always on, so unrelated long fields like bodytext get concatenated into the title. headline (and field/table_name/element_type) are still varchar(255); url/link_title/ url_response are already text, suggesting a related length issue (#98328, for url) was fixed by widening the column – headline seems to have been missed.
Suggested fix
Either restore the “first non-empty wins” behavior in getRecordTitle(), or cap headline before insert in linkvalidator.
Reviews 2
Related issues 1
History 58
-
Benni Mack changed Sprint Focus On Location Sprint <span data-processor="relativetime" data-value="2026-08-06T16:03:02+00:00" > 08/06/26, 16:03 </span>
-
Marcus Balasch commented <span data-processor="relativetime" data-value="2026-08-06T18:46:56+00:00" > 08/06/26, 18:46 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 95139 status
NewUnder Review <span data-processor="relativetime" data-value="2026-08-06T20:01:24+00:00" > 08/06/26, 20:01 </span> -
Gerrit Code Review pushed patch set 2 for main to change 95139 <span data-processor="relativetime" data-value="2026-08-06T20:13:26+00:00" > 08/06/26, 20:13 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 95161 <span data-processor="relativetime" data-value="2026-08-07T06:01:50+00:00" > 08/07/26, 06:01 </span>
-
Niklas Grieger commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-08-07T07:10:13+00:00" > 08/07/26, 07:10 </span>Applied in changeset commit:47eac8ba460210ccb6a5586478ee3b47e9b80279.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2026-08-11T08:51:52+00:00" > 08/11/26, 08:51 </span> -
Georg Ringer changed Related to #98328 <span data-processor="relativetime" data-value="2026-08-13T17:49:17+00:00" > 08/13/26, 17:49 </span>
I’m working on it at the coding night