Bug #66523
closedRefindex error for link wizard fields in flexforms
100%
Description
If you use the link wizard in a flexform field inside a custom workspace to link to a FAL Record (sys_file), TYPO3 will create a reference to the FAL Record.
So far so good, this is the expected behaviour, because of this we can see in File > Filelist that this record has a RefIndex record pointing to it.>getRecord) with the given Workspace-Uid, and because the sys_file table isn't enabled for workspaces the result of this query is empty.
The Problem is: In the Workspaces Module TYPO3 tries to find the sys_file Record (\TYPO3\CMS\Version\Dependency\ElementEntity
As a result of this \TYPO3\CMS\Version\Dependency\ElementEntityProcessor->createNewDependentElementCallback will throw a RuntimeException that tells you that "Element sys_file:{someFileUid} does not exist".
If you install the attached extension into a fresh TYPO3 6.2 install you can reproduce the error by creating a content element of Type "Flexform Test" inside of a custom workspace, change to the "Flexform Test" tab and select a File by clicking on the link icon to open the link wizard. After saving your changes, you will have the error right after going to the workspace module and switching into your workspace where you created the content element.
Files