Actions
Bug #89666
closedPersistenceManagerException with two extensions providing a form definition with the same name
Status:
Rejected
Priority:
-- undefined --
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2019-11-13
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Remote Sprint
Description
Usecase:
- One TYPO3 installation with multiple sites each with its own site extension.
- Each site extension provides a contact form for the site
- Path1 is
EXT:extension/Resources/Private/Forms/Contact.form.yaml
- Path2 is
EXT:extension2/Resources/Private/Forms/Contact.form.yaml
On installing extension2
the references to the form definitions of extension
are no longer valid as they are replaced by the ones of extension2
.
The issue is apparently that the name of the yaml is the key for the form definition and the path / extension name is not taken into account.
How to reproduce:
- Download extensions.zip from this issue
- Install
EXT:extension
- Add form content element referencing the form definition
- Install
EXT:extension2
- When editing the form content element only the form definition of the second extension is visible
- When accessing the page containing the form content element in the frontend the following exception is shown:
#1484071985 TYPO3\CMS\Form\Mvc\Persistence\Exception\PersistenceManagerException The file "EXT:extension/Resources/Private/Forms/Contact.form.yaml" could not be loaded. Please check your configuration option "persistenceManager.allowedExtensionPaths"
Files
Actions