Bug #85570
closedremoval of form-configuration is not possible if there is a recycler inside the folder-structure
100%
Description
Hi,
with the current release of 8.7.17 the newly introduced ".form.yaml"-extension and the FilePersistenceSlot disallows removing a form-configuration if there is a recycler bin in your folder structure.
This use-case leads to:
#1530281202: Persisting form definition "1:/user_upload/_recycler_/testform.form.yaml" is denied
Current workflow in ext:form on FormManagerController::deleteAction is calling ResourceStorage::deleteFile through FormPersistenceManager::delete.
If there is a "nearestRecyclerFolder" deleteFile will delegate to moveFile but in filePersistenceSLot::onPreMoveFile -> assertFile there is no invocation allowed for this combination (none defined and also none allowed).
A quick (and really dirty) workaround is calling defineInvocation inside of FilePersistenceSlot::onPreFileMove - but this allows moving ".form.yaml" always and should not be used on production environment.
Possibly also a bug in 9.x - not yet tested