Project

General

Profile

Actions

Bug #40925

closed

Localization of FAL file relations in filelinks CE throws Exception

Added by Mario Rimann over 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2012-09-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
hard
Is Regression:
Sprint Focus:

Description

Tested on a 6.0-dev installation based on an almost current master from Git, with some added cherry-picked FAL changes on top (that are in review right now and will hopefully be merged soon).

  • Create a content element of type filelinks in default language
  • add 1+ files as FAL file relations and save
  • localize that whole content element (Frontend now shows the content in both languages)
  • edit the localized record and click the "localize" button (see arrow in screenshot)

As soon as this button is clicked once, TYPO3 throws the following Exception when rendering this page in the localized language in the Frontend.

Hiding the whole translated CE again solves the problem with the Exception, but doesn't allow us to localize the file relations.

PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'No file found for given UID.' in /path/to/typo3/sysext/core/Classes/Resource/ResourceFactory.php:258
Stack trace:
#0 /path/to/typo3/sysext/core/Classes/Resource/FileReference.php(102): TYPO3\\CMS\\Core\\Resource\\ResourceFactory->getFileObject('0')
#1 [internal function]: TYPO3\\CMS\\Core\\Resource\\FileReference->__construct(Array)
#2 /path/to/typo3/sysext/core/Classes/Utility/GeneralUtility.php(4151): ReflectionClass->newInstanceArgs(Array)
#3 /path/to/typo3/sysext/core/Classes/Resource/ResourceFactory.php(461): TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\...', Array)

Files

fal_relation_localization.png (19.6 KB) fal_relation_localization.png Mario Rimann, 2012-09-14 13:23
FAL_localization_issues.pdf (701 KB) FAL_localization_issues.pdf Marcel Burkhalter, 2012-10-18 17:28
Actions #2

Updated by Oliver Hader over 11 years ago

  • Category set to File Abstraction Layer (FAL)
  • Status changed from New to Accepted
  • Target version set to 6.0.0
  • Complexity set to hard
Actions #3

Updated by Steffen Ritter over 11 years ago

  • Status changed from Accepted to On Hold

new translation handling is to be implemented

Actions #4

Updated by Marcel Burkhalter over 11 years ago

We tried to make an overview of all current FAL translation problems (see PDF). We tested with the following master using a non-admin BE user:

commit b8a7c9f942f5e8403f910857f81aed4f5e268ae1
[BUGFIX] Use UTF-8 by default in Flexforms and Backend

and cherry-picked the following patchsets:

  1. [BUGFIX] Many severe bugs in ProcessedFile implementation / https://review.typo3.org/#/c/14310/
    git fetch git://git.typo3.org/TYPO3v4/Core refs/changes/10/14310/5 && git cherry-pick FETCH_HEAD
  1. [BUGFIX] Backend can't deal with fal references in translated records / https://review.typo3.org/#/c/14336/
    git fetch git://git.typo3.org/TYPO3v4/Core refs/changes/36/14336/5 && git cherry-pick FETCH_HEAD
  1. [BUGFIX] ContentAdapter for FAL not capable of translations / https://review.typo3.org/#/c/14337/
    git fetch git://git.typo3.org/TYPO3v4/Core refs/changes/37/14337/9 && git cherry-pick FETCH_HEAD
  1. [BUGFIX] Editors do not have rights to edit file metadata / https://review.typo3.org/#/c/13658/
    git fetch git://git.typo3.org/TYPO3v4/Core refs/changes/58/13658/3 && git cherry-pick FETCH_HEAD
  1. [BUGFIX] Rootline must not include references to deleted records / https://review.typo3.org/#/c/14302/
    git fetch git://git.typo3.org/TYPO3v4/Core refs/changes/02/14302/1 && git cherry-pick FETCH_HEAD
  1. [BUGFIX] Faulty localization if IRRE is used on pages / https://review.typo3.org/#/c/15523/
    git fetch git://git.typo3.org/TYPO3v4/Core refs/changes/23/15523/1 && git cherry-pick FETCH_HEAD
Actions #5

Updated by Helmut Hummel over 11 years ago

  • Status changed from On Hold to Needs Feedback

Still an issue?

Actions #6

Updated by Marcel Burkhalter over 11 years ago

We tested all issues described in the PDF document --> all fixed with the current origin/TYPO3_6-0 branch.

Actions #7

Updated by Alexander Opitz almost 11 years ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF