Project

General

Profile

Actions

Bug #88221

closed

Extbase FileReference cannot be used in ImageService because of too strict typehint

Added by Susanne Moog about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
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]


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #88222: ImageViewHelper uses properties without checking existanceClosedSusanne Moog2019-04-26

Actions
Actions

Also available in: Atom PDF