Project

General

Profile

Actions

Bug #93752

closed

9.5.25: Uncaught TYPO3 Exception when using FileReference object

Added by Sascha Brümmer over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2021-03-16
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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

Actions #1

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

Actions #2

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

Actions #3

Updated by Christian Kuhn over 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Josef Glatz over 3 years ago

  • Is Regression set to Yes
Actions #5

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!

Actions #6

Updated by Oliver Hader over 3 years ago

  • Status changed from Resolved to Needs Feedback
  • Assignee set to Oliver Hader
Actions #7

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.

Actions #8

Updated by Oliver Hader over 3 years ago

  • Status changed from Needs Feedback to Resolved

I see, thanks for sharing insights

Actions #9

Updated by Benni Mack over 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF