Actions
Bug #88332
closedincorrect generation of unique file name in BasicFileUtility
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2019-05-10
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:
Description
BasicFileUtility->getUniqueName() dosen't work correctly anymore since https://review.typo3.org/c/45695/
For the script it is no longer possible to determine a unique filenime "higher" then 99, because the unique string generation for numbers > maxNumber never kicks in
Steps to reproduce:
1) configure a field as
'type' => 'group',
'internal_type' => 'file',
'uploadfolder' => 'uploads/pics',
2) upload the same file 99 times (or place filename_1 to filename_99 in uploads/pics)
3) upload the same file another time - you will get the error "Copying file '' failed!: No destination file () possible!"
(possible) fix: revert change in https://review.typo3.org/c/Packages/TYPO3.CMS/+/45695/15/typo3/sysext/core/Classes/Utility/File/BasicFileUtility.php#b291
Updated by Georg Ringer over 5 years ago
- Related to Task #77182: Cleanup and remove old filefunc logic added
Updated by Georg Ringer over 5 years ago
- Has duplicate Bug #88455: Never attach random string if file already exists in folder added
Updated by Georg Ringer over 5 years ago
- Status changed from New to Closed
Thanks for your report! I am fixing this with issue #88455 and therefore closing this one as duplicate.
Actions