[BUGFIX] Wrong generation of metadata in FAL 90/33990/8
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:26 +0000 (18:06 +0100)
commit6c21ec7b58ca547eb1d908ee289dd1732313a90d
tree0b624329ac778cd150d5ca51f409f6d91e38f2f7
parente191264249aaf66a4170dbc3b0d1e5e6ba3ff4da
[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/33990
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Fabien Udriot <fabien.udriot@ecodev.ch>
Tested-by: Fabien Udriot <fabien.udriot@ecodev.ch>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
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]