Bug #88221
closedExtbase FileReference cannot be used in ImageService because of too strict typehint
100%
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]
Updated by Gerrit Code Review over 5 years ago
- Status changed from In Progress to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60567
Updated by Mathias Brodala over 5 years ago
- Related to Bug #88222: ImageViewHelper uses properties without checking existance added
Updated by Anonymous over 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 913c310cbc0f5932e16ca7c3073070d653f389c9.