#98363EXT:form - Deletion of forms created in allowedExtensionPaths not possible
Description
The deletion of forms that are placed in a path configured under TYPO3.CMS.Form.persistenceManager.allowedExtensionPaths is not possible, although the creation in these locations works without an error message.
The delete function of FormManagerController is using the ResourceFactory wich checks, if the YAML file of the form is placed in a public location. If this isn’t the case (which isn’t checked on creation), the PathUtility throws a InvalidFileException which the ResourceFactory interprets as ResourceDoesNotExistException with the message
Tried to access a private resource file "EXT:my_ext/Resources/Private/Forms/test1.form.yaml" from fallback compatibility storage. This storage only handles public files.
Since we can configure a private path for YAML storage and the fact that YAML files aren’t public resources in the first place, I suggest removing the check for public locations when saving and deleting forms in the backend.
Example configuration in BaseSetup.yaml
TYPO3:
CMS:
Form:
persistenceManager:
allowedExtensionPaths:
10: EXT:my_ext/Resources/Private/Forms/
allowSaveToExtensionPaths: true
allowDeleteFromExtensionPaths: trueReviews 2
Related issues 2
History 611
-
Riccardo De Contardi changed Related to #101457 <span data-processor="relativetime" data-value="2024-07-05T20:24:41+00:00" > 07/05/24, 20:24 </span>
-
Riccardo De Contardi commented <span data-processor="relativetime" data-value="2024-07-05T20:31:57+00:00" > 07/05/24, 20:31 </span>
-
Josua Vogel changed Related to #102160 <span data-processor="relativetime" data-value="2026-10-12T19:24:41+00:00" > 10/12/26, 19:24 </span>
-
Josua Vogel commented <span data-processor="relativetime" data-value="2026-10-12T19:26:15+00:00" > 10/12/26, 19:26 </span>
fixed with #102160
I´ll add a test to prove the fix -
Gerrit Code Review pushed patch set 1 for main to change 96641 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-12T19:26:58+00:00" > 10/12/26, 19:26 </span> -
Gerrit Code Review pushed patch set 2 for main to change 96641 <span data-processor="relativetime" data-value="2026-10-12T19:27:08+00:00" > 10/12/26, 19:27 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 96675 <span data-processor="relativetime" data-value="2026-10-14T07:43:26+00:00" > 10/14/26, 07:43 </span>
-
Josua Vogel commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-10-14T07:45:11+00:00" > 10/14/26, 07:45 </span>Applied in changeset commit:0a835c80f63ae7553f96e98c8000968cc70ee937.
-
Gerrit Code Review pushed patch set 2 for 14.3 to change 96675 status
ResolvedUnder Review <span data-processor="relativetime" data-value="2026-10-14T08:51:02+00:00" > 10/14/26, 08:51 </span> -
Gerrit Code Review pushed patch set 3 for 14.3 to change 96675 <span data-processor="relativetime" data-value="2026-10-14T17:30:44+00:00" > 10/14/26, 17:30 </span>
-
Josua Vogel commented and changed status
Under ReviewResolved <span data-processor="relativetime" data-value="2026-10-15T05:45:16+00:00" > 10/15/26, 05:45 </span>Applied in changeset commit:5878dde45249d856764d76dc841723394b4949eb.
As reported on #101457 this issue is still valid for version 12.
I’ll write here the description of that issue to keep track of it
> *Versions of relevant Components:
>
> Typo3-Version: 12.4.3
> PHP Version: 8.1
> CMS-Form: 12.4.3
>
> *Steps to Reproduce:
>
> Step 1: Configuration of Sitepackage as storage option:
>
> We have used forms and configured the site package as an additional option for saving as follows.
>
> persistenceManager:
> allowedExtensionPaths:
> 10: EXT:gartenlandooe/Resources/Private/Forms/
> allowSaveToExtensionPaths: true
> allowDeleteFromExtensionPaths: true
>
> Step 2: Create new form and save it within the site package, then try to delete it.
>
> Saving works as expected. However, on the deletion of a form saved within the sitepackage, an error is thrown. It says that the resource does not exist, although it does.
>
> (1/1) #1633777536 TYPO3\CMS\Core\Resource\Exception\ResourceDoesNotExistException
> Tried to access a private resource file “EXT:gartenlandooe/Resources/Private/Forms/test2.form.yaml” from fallback compatibility storage. This storage only handles public files.