Bug #93752
closed9.5.25: Uncaught TYPO3 Exception when using FileReference object
100%
Description
Problem:
"Uncaught TYPO3 Exception: Class 'TYPO3\CMS\Core\Resource\GeneralUtility' not found | Error thrown in file public/typo3/sysext/core/Classes/Resource/FileReference.php in line 532"
when using the FileReference object.
Cause:
Missing `use TYPO3\CMS\Core\Utility\GeneralUtility;` statement.
The statement just seems to be missing in the 9.5.25 version of the file:O
https://github.com/TYPO3/TYPO3.CMS/blob/v9.5.25/typo3/sysext/core/Classes/Resource/FileReference.php#L17
vs.
https://github.com/TYPO3/TYPO3.CMS/blob/10.4/typo3/sysext/core/Classes/Resource/FileReference.php#L19
https://github.com/TYPO3/TYPO3.CMS/blob/11.1/typo3/sysext/core/Classes/Resource/FileReference.php#L19
Updated by Gerrit Code Review over 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68465
Updated by Gerrit Code Review over 3 years ago
Patch set 2 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68465
Updated by Christian Kuhn over 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset cdca2cf27e6bdc87ed221eb99c3dd562031ff5ff.
Updated by Oliver Hader over 3 years ago
This error occurs when a FileReference
is deserialized. To assess the pressure of having new releases, I'd like to know about the specific use-case that leads to this problem. Thx in advance for feedback!
Updated by Oliver Hader over 3 years ago
- Status changed from Resolved to Needs Feedback
- Assignee set to Oliver Hader
Updated by Sascha Brümmer over 3 years ago
Hello Oliver,
we're using the FileReference in a multistep Extbase form flow containing a file upload. Form data is stored within a session there.
I've already fixed the problem with a composer patch, so - for our project - there's no hurry.
THX for the fast response, S.
Updated by Oliver Hader over 3 years ago
- Status changed from Needs Feedback to Resolved
I see, thanks for sharing insights