From a190f44b9085db2f3b0393d0dd9e2b28b74714ce Mon Sep 17 00:00:00 2001 From: Stephan Kergomard Date: Wed, 22 Nov 2023 10:52:17 +0100 Subject: [PATCH] IRSS: Fix Write Access to Storage on Migration See: https://mantis.ilias.de/view.php?id=38993 --- .../classes/Setup/class.ilResourceStorageMigrationHelper.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/ILIAS/ResourceStorage/classes/Setup/class.ilResourceStorageMigrationHelper.php b/components/ILIAS/ResourceStorage/classes/Setup/class.ilResourceStorageMigrationHelper.php index 0bfaa9427ad5..504f7f9fb5c0 100755 --- a/components/ILIAS/ResourceStorage/classes/Setup/class.ilResourceStorageMigrationHelper.php +++ b/components/ILIAS/ResourceStorage/classes/Setup/class.ilResourceStorageMigrationHelper.php @@ -85,6 +85,10 @@ public function __construct( $this->client_data_dir = $client_data_dir; $this->database = $db; + if (!is_writable("{$data_dir}/{$client_id}/storage/fsv2")) { + throw new Exception('storage directory is not writable, abort...'); + } + // Build Container $init = new InitResourceStorage(); $container = new Container();