#91462LostFilesCommand custom-path fails on symlinked storages/folders
Description
The LostFileCommand fails because of comparison based on realpath if a via --custom-path pased folders is symlinked:
bin/typo3cms cleanup:lostfiles --update-refindex --custom-path='uploads/symlinked_Folder' [...] 16782 records from 47 tables were checked/updated. Index Integrity was perfect! [ Exception ] The path: "uploads/symlinked_Folder" is invalid
However in normal mode or when using --exclude to exclude other folders the cleanup of “uploads/symlinked_Folder” works.
The problem is the comparison via realpath in sysext/lowlevel/Classes/Command/LostFilesCommand.php#L192
ls -l /var/www/releases/current/public/uploads lrwxr-xr-x 1 www www 28 May 11 13:44 /var/www/releases/current/public/uploads -> ../../../shared/Data/uploads realpath /var/www/releases/current/public /var/www/releases/20200511114408/public realpath /var/www/releases/20200511114408/public/uploads/symlinked_Folder /var/www/shared/Data/uploads/symlinked_Folder
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 3
-
Oliver Hader changed target version <span data-processor="relativetime" data-value="2020-06-17T18:51:36+00:00" > 06/17/20, 18:51 </span>
-
Tomas Norre Mikkelsen commented <span data-processor="relativetime" data-value="2022-06-17T07:59:06+00:00" > 06/17/22, 07:59 </span>
-
Andreas Kienast commented and changed status
NewClosed <span data-processor="relativetime" data-value="2025-04-23T09:55:27+00:00" > 04/23/25, 09:55 </span>The ticket is now closed as the command does not exist anymore as already stated by Tomas.
As this has been removed in V12. I’m not sure if this has priority?
https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.0/Breaking-97131-RemovedCLICommandsRelatedToFilesInUploadsFolder.html