Project

General

Profile

Actions

Bug #85570

closed

removal of form-configuration is not possible if there is a recycler inside the folder-structure

Added by Markus Volkmer over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Category:
Form Framework
Start date:
2018-07-16
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
.form.yaml, recycler, delete
Complexity:
Is Regression:
Yes
Sprint Focus:

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

Actions

Also available in: Atom PDF