Issue Bug Closed

#100915"Show references for this form" throws error for form definitions in Private path of custom extension

Chris Müller 05/24/23, 11:36 updated 09/27/24, 10:17

Description

I store forms (which are not editable by editors and get deployed) in a custom extension in the path “Resources/Private/Forms”. When I now click on the overview page of the “Forms” backend module on the three dots and select “Show references for this form” the following error occurs:

Tried to access a private resource file "EXT:my_ext/Resources/Private/Forms/my_form.form.yaml" from fallback compatibility storage. This storage only handles public files.

Exception code: 1633777536

The relevant parts of the stack trace:

in /var/www/html/vendor/typo3/cms-core/Classes/Resource/ResourceFactory.php line 325

at TYPO3\CMS\Form\Service\DatabaseService->getReferencesByPersistenceIdentifier('EXT:my_ext/Resources/Private/Forms/my_form.form.yaml')
in /var/www/html/vendor/typo3/cms-form/Classes/Controller/FormManagerController.php line 452

at TYPO3\CMS\Form\Controller\FormManagerController->getProcessedReferencesRows('EXT:my_ext/Resources/Private/Forms/my_form.form.yaml')
in /var/www/html/vendor/typo3/cms-form/Classes/Controller/FormManagerController.php line 295

at TYPO3\CMS\Form\Controller\FormManagerController->referencesAction('EXT:my_ext/Resources/Private/Forms/my_form.form.yaml')
in /var/www/html/vendor/typo3/cms-extbase/Classes/Mvc/Controller/ActionController.php line 575

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.