[BUGFIX] Move file extension detection to FAL driver 96/56696/2
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 21:09:53 +0000 (23:09 +0200)
commit1471662281255e11a199e288300bb48673b14bd4
tree923f0b926b9d70449904e21a73262d82064292ae
parente5c64fd0bd4f3de20fa2feeea65b679dc19f9342
[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/56696
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
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/Tests/Unit/Resource/Utility/FileExtensionFilterTest.php