Issue Bug Closed

#106690extension:setup results in "data too long for column 'entry_key'"

Kevin Appelt 05/13/25, 14:50 updated 08/12/25, 14:36

Description

Boiled down to this change:
https://github.com/TYPO3/typo3/commit/e5b30f1a3136a51ded87f65dea088ecb38081b22

entry_key was typo3/cms-extensionmanager/ext_tables_static+adt.sql until including 13.4.9.
@entry_key@ is now /var/www/html/vendor/typo3/cms-extensionmanager/ext_tables_static+adt.sql in DDEV, still matching the limit of 128 chars.

When deployed the path gets something like /home/www/doc/12345/user12345_678/my-website.com/live/releases/123456_20250513120354/vendor/typo3/cms-extensionmanager/ext_tables_static+adt.sql which is 144 chars and exceeds the 128 char limit, thus resulting in the error.

Debugged PathUtility::stripPathSitePrefix()
@$path@ is something like /var/www/html/vendor/typo3/cms-core/Initialisation/Files
@Environment::getPublicPath()@ is something like /var/www/html/public
Resulting in if (!str_starts_with($path, Environment::getPublicPath())) being true.

Reviews 4

History 621

  1. Stefan Bürk commented <span data-processor="relativetime" data-value="2025-05-14T07:33:20+00:00" > 05/14/25, 07:33 </span>

    Abandoned the change trying to fix [1] in favour of reverting
    it [1], as it did not payed out. See the abandond change for
    discussion details.

    [1] https://review.typo3.org/c/Packages/TYPO3.CMS/+/89376
    2 https://review.typo3.org/c/Packages/TYPO3.CMS/+/89381

  2. Stefan Bürk commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-05-14T09:25:10+00:00" > 05/14/25, 09:25 </span>

    Applied in changeset commit:6d042a3964b48390cdb38007a988c7da056fcdca.