[BUGFIX] Wrong generation of metadata in FAL 54/36454/2
authorFrederic Gaus <gaus@flagbit.de>
Tue, 11 Nov 2014 18:35:36 +0000 (19:35 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 30 Jan 2015 17:06:43 +0000 (18:06 +0100)
commitc29a725415ce58429ffaf858b8bef240b4847816
treed9cc6dacad87ea89abd82d8a6bae36a014f0f1dc
parent15b0c67ac0642715573515d297c3f27723e63e72
[BUGFIX] Wrong generation of metadata in FAL

This patch fixes the generation of metadata if the metadata
of a file is missing in sys_file_metadata. Without this patch
the metadata is generated without taking care of images and their
width and height. As a result, images are generated with
width=0 height=0. See bugreport for details.

The change also introduces the basic structure to fetch
general info of files via the SplFileInfo objects API.

Resolves: #62829
Releases: master, 6.2
Change-Id: Ie99fc74f3439cef5dbd3702e57596b37390da679
Reviewed-on: http://review.typo3.org/36454
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Classes/Resource/AbstractFile.php
typo3/sysext/core/Classes/Resource/Index/MetaDataRepository.php
typo3/sysext/core/Classes/Type/File/FileInfo.php [new file with mode: 0644]
typo3/sysext/core/Classes/Type/File/ImageInfo.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Type/File/FileInfoTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Type/File/ImageInfoTest.php [new file with mode: 0644]