#106690extension:setup results in "data too long for column 'entry_key'"
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
- 13.4 89383Revert "[BUGFIX] Strip only existing prefix in PathUtility::stripPathSitePrefix()"
- main 89381Revert "[BUGFIX] Strip only existing prefix in PathUtility::stripPathSitePrefix()"
- 13.4 89382Revert "[BUGFIX] Strip only existing prefix in PathUtility::stripPathSitePrefix()"
- main 89376[BUGFIX] Avoid exceeding `sys_registry.entry_key` length