Skip to content

Commit 66c2c40

Browse files
georgringerlolli42
authored andcommitted
[BUGFIX] Handle offline storages in filemounts gracefully
If the storage selected in a `sys_filemounts` record has been set to offline, the `sys_filemounts` records must still be editable. This is also valid for any other folder selection, and therefore the exception must be handled. Resolves: #108167 Releases: main, 13.4 Change-Id: I2fcd882bd861fbf0ba5cf493089cc8def3c20c6c Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/91759 Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: core-ci <typo3@b13.com>
1 parent 09602b4 commit 66c2c40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

typo3/sysext/backend/Classes/Form/FormDataProvider/TcaFolder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
namespace TYPO3\CMS\Backend\Form\FormDataProvider;
1919

2020
use TYPO3\CMS\Backend\Form\FormDataProviderInterface;
21+
use TYPO3\CMS\Core\Resource\Exception\InsufficientFolderAccessPermissionsException;
2122
use TYPO3\CMS\Core\Resource\Exception\ResourceDoesNotExistException;
2223
use TYPO3\CMS\Core\Resource\Folder;
2324
use TYPO3\CMS\Core\Resource\ResourceFactory;
@@ -74,7 +75,7 @@ public function addData(array $result)
7475
'folder' => $folder,
7576
];
7677
}
77-
} catch (ResourceDoesNotExistException) {
78+
} catch (ResourceDoesNotExistException | InsufficientFolderAccessPermissionsException) {
7879
continue;
7980
}
8081
}

0 commit comments

Comments
 (0)