Bug #83501
closed
Non-existing file storage ID 1 breaks BaseSetup => "No accessible form storage folders"
Added by Christian Rieke almost 7 years ago.
Updated over 1 year ago.
Sprint Focus:
Remote Sprint
Description
Flie mount ID 1 is hardcoded in BaseSetup.yaml
allowedFileMounts:
10: 1:/user_upload/
If a file mount ID 1 does not exist, form fails with "No accessible form storage folders" message.
Although, according to the core AccessControl documentation, hardcoding the file mount ID looks like the official way to do it, this is the first time that I experience a TYPO3 function to actually break by doing it.
- Subject changed from Non-existing file mount ID 1 breaks BaseStup => "No accessible form storage folders" to Non-existing file storage ID 1 breaks BaseStup => "No accessible form storage folders"
CORRECTION:
file storage with ID 1 must exist (not file mount)
- Sprint Focus set to Remote Sprint
- Subject changed from Non-existing file storage ID 1 breaks BaseStup => "No accessible form storage folders" to Non-existing file storage ID 1 breaks BaseSetup => "No accessible form storage folders"
- Status changed from New to Closed
If a file mount ID 1 does not exist, form fails with "No accessible form storage folders" message.
Normally, this is not the case. In a fresh TYPO3 installation, there is always a file storage with uid 1. The storage is auto-created. Please make sure that the storage 1 exists in your installation.
Bjoern Jacob wrote:
Normally, this is not the case. In a fresh TYPO3 installation, there is always a file storage with uid 1. The storage is auto-created. Please make sure that the storage 1 exists in your installation.
The "bug" still exists in TYPO3 9.x and, frankly, this answer is quite unsatisfying as it's easily possible to delete the default storage in the backend which leads to the issue mentioned in this ticket.
We just solved the issue by overrdiding the default form's baseSetup.yaml with Typoscript:
module.tx_form.settings.yamlConfigurations {
1699088 = fileadmin/Yaml/FormSetup.yaml
}
with the following content changing the default storage UID to 2:
TYPO3:
CMS:
Form:
persistenceManager:
allowedFileMounts:
10: 2:/form_definitions/
20: 2:/user_upload/
Also available in: Atom
PDF