[BUGFIX] Implement check against File type restriction in Extractors 74/36674/4
authorFabien Udriot <fabien.udriot@ecodev.ch>
Thu, 5 Feb 2015 17:20:23 +0000 (18:20 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 13 Nov 2015 19:28:12 +0000 (20:28 +0100)
commit169813978e526a48b04b6ba213899ce63cecd613
tree2072c6d5d9d96db5ddfb793a3b9aa9ccfbea2f6b
parentfee2fcdaf7422a503a3207797df0ffe150d52dab
[BUGFIX] Implement check against File type restriction in Extractors

The Metadata Extractor interface provides the possibility to limit
the scope of the extraction to only certain file types, e.g. text, image,
video, audio, application. This can be defined in every Extactor
in method ExtractorInterface::getFileTypeRestrictions()

However, this check is not implemented in the Indexer and defining
any value as File type restriction will have no effect currently.
This patch fixes the situation.

Change-Id: Iffc01f98eec89de818acaa8ceb759a2b781759fa
Resolves: #64883
Releases: master, 6.2
Reviewed-on: https://review.typo3.org/36674
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Resource/Index/Indexer.php
typo3/sysext/core/Tests/Unit/Resource/Index/IndexerTest.php [new file with mode: 0644]