Project

General

Profile

Actions

Bug #104388

open

Levelmedia + FILES cObject results in fatal error for hidden/deleted file references

Added by Philipp Kitzberger 6 months ago. Updated about 1 month ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
Due date:
% Done:

0%

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

Description

This is a follow-up to #82844 because not all issues with hidden file references in workspaces have been resolved for TYPO3 11 and 12.

Problem is having workspace-deleted (t3ver_state=2) or hidden=1 file reference in a draft workspace is throwing an exception when previewing that page in draft preview:

No file reference (sys_file_reference) was found for given UID: "40907"

That can be reproduced with both renderers cObject FILES and FilesProcessor:

page.10 {
  variables.files = FILES
  variables.files.references.data = levelmedia:-1,slide

  dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
  dataProcessing.10.references.data = levelmedia:-1,slide
}

Files


Related issues 1 (0 open1 closed)

Follows TYPO3 Core - Bug #82844: Workspaces + Levelmedia + FILES cObject results in fatal errorClosed2017-10-23

Actions
Actions #1

Updated by Philipp Kitzberger 6 months ago

  • Subject changed from Workspaces + Levelmedia + FILES cObject results still in fatal error to Workspaces + Levelmedia + FILES cObject results in fatal error for hidden/deleted file references
Actions #2

Updated by Philipp Kitzberger 6 months ago

  • Due date set to 2017-10-24
  • Start date changed from 2024-07-13 to 2017-10-24
  • Follows Bug #82844: Workspaces + Levelmedia + FILES cObject results in fatal error added
Actions #3

Updated by Jo Hasenau about 1 month ago

  • File clipboard-202412201604-xt6bz.png clipboard-202412201604-xt6bz.png added
  • Subject changed from Workspaces + Levelmedia + FILES cObject results in fatal error for hidden/deleted file references to Levelmedia + FILES cObject results in fatal error for hidden/deleted file references
  • Status changed from New to Accepted

I can confirm that behaviour, but not just within Workspaces. As soon as there is a hidden file reference in the list of sys_file_reference IDs, the FilesProcessor will fail with an exception, because the resourceFactory involved via FileCollector will not find any fileReferenceData.

Actions #4

Updated by Jo Hasenau about 1 month ago

  • Due date deleted (2017-10-24)
  • Start date deleted (2017-10-24)
Actions

Also available in: Atom PDF