Bug #95149

ExistingTargetFileNameException is never thrown in TYPO3\CMS\Core\Resource\ResourceStorage::sanitizeFileName()

Added by Stephan Großberndt about 1 month ago. Updated 8 days ago.

Status:
Resolved
Priority:
Should have
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2021-09-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

PHPDoc mentions two Exceptions which are never thrown in code and misses the only exception which may actually be thrown in LocalDriver: InvalidFileNameException

    /**
     * Clean a fileName from not allowed characters
     *
     * @param string $fileName The name of the file to be add, If not set, the local file name is used
     * @param Folder $targetFolder The target folder where the file should be added
     *
     * @throws \InvalidArgumentException
     * @throws Exception\ExistingTargetFileNameException
     * @return string
     */
    public function sanitizeFileName($fileName, Folder $targetFolder = null)
    {
#1

Updated by Gerrit Code Review about 1 month ago

  • Status changed from In Progress to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70970

#2

Updated by Gerrit Code Review 9 days ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70970

#3

Updated by Gerrit Code Review 8 days ago

Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71572

#4

Updated by Stephan Großberndt 8 days ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF