[BUGFIX] Move file extension detection to FAL driver 24/55824/14
authorFrans Saris <franssaris@gmail.com>
Tue, 20 Feb 2018 13:36:16 +0000 (14:36 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Mon, 16 Apr 2018 20:40:15 +0000 (22:40 +0200)
commitde160a84bc1c52bc2c791a854eaa53f126a87023
treebc2a4164d1c34c3a94590524dc551a1a36f6d4af
parent754785db8dfa0a113878bed2d26c744a3d90b7d9
[BUGFIX] Move file extension detection to FAL driver

The only object that is allowed to handle the physical file in the FAL
is the driver. As that's the only instance that knows how to access the
file.

This patch makes sure the Indexer and FileExtensionFilter asks the
driver of the file extension instead of using the PathUtility itself.

Releases: master, 8.7
Resolves: #83976
Change-Id: I80bec3c3f86d1137747e37dd99973ada8909ad36
Reviewed-on: https://review.typo3.org/55824
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Richard Haeser <richard@maxserv.com>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php
typo3/sysext/core/Classes/Resource/Filter/FileExtensionFilter.php
typo3/sysext/core/Classes/Resource/Index/Indexer.php
typo3/sysext/core/Documentation/Changelog/master/Deprecation-83976-MovedFileExtensionDetectionToFALDriver.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Resource/Utility/FileExtensionFilterTest.php