Bug #83501
closedNon-existing file storage ID 1 breaks BaseSetup => "No accessible form storage folders"
0%
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.
Updated by Christian Rieke almost 7 years ago
- 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)
Updated by Björn Jacob almost 7 years ago
- 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"
Updated by Björn Jacob almost 7 years ago
- 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.
Updated by Oliver joppnet over 5 years ago
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/