Actions
Bug #88221
closedExtbase FileReference cannot be used in ImageService because of too strict typehint
Start date:
2019-04-26
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
While hardening the ImageService it was restricted to core's FileReference instead of also allowing extbase FileReferences - the code for converting them is still there but not reachable anymore due to the restrictive type hint.
To test:
- Create an '\TYPO3\CMS\Extbase\Domain\Model\FileReference' and call ImageService::getImage('', $image...)
Easy core steps:
- Use the form framework to create a form with an image upload field.
- Add a summary page to the form
- Use the form in frontend and upload an image - get the error when looking at the summary
[note: after applying the patch you will get a second error because of changed meta data handling, however that's a separate issue]
Actions