Bug #39859
closedNo thumbnail if removing file extension from title
100%
Description
Thumbnails are not shown if file extension is removed from Title field.
Affected: page module and element browser. Screenshots added...
Files
Updated by Alexander Opitz about 12 years ago
I traced this problem down to an API problem inside the API.
TYPO3\CMS\Core\Resource\AbstractFile->name: Name of this file.
TYPO3\CMS\Core\Resource\File->__construct($fileData) $fileData: Array of the sys_file DB entry.
$fileData['name']: Value of the table field "name" in "sys_file" table.
But this field is the title field.
TYPO3\CMS\Core\Resource\AbstractFile->getExtension() does a pathinfo to the property "name" to get the extension, which already lies in the property "properties" of AbstractFile. And why lowercase it?
TYPO3\CMS\Core\Resource\Driver\LocalDriver->extractFileInformation() This function again uses the fileName of the file for the "name" property of the AbstractFile and not the one from the Storage. TYPO3\CMS\Core\Resource\Filter\FileExtensionFilter->filterFileList() asks the Driver and not the Storage?
I didn't read any FAL design, as there is nothing in the wiki, but this looks a bit like a problem inside the API.
Updated by Andreas Wolf about 12 years ago
- Project changed from 1401 to TYPO3 Core
Updated by Andreas Wolf about 12 years ago
- Category set to File Abstraction Layer (FAL)
- TYPO3 Version set to 6.0
Updated by Andreas Wolf about 12 years ago
Updated by Andreas Wolf about 12 years ago
- Status changed from Accepted to Under Review
Updated by Gerrit Code Review about 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14260
Updated by Gerrit Code Review about 12 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14260
Updated by Anonymous about 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset d4f101a0bbf55e4c7fd1fe40d4eb0723068d100a.