diff --git a/api/src/Asyncservice.php b/api/src/Asyncservice.php index b90725e3c5..d169f0c786 100644 --- a/api/src/Asyncservice.php +++ b/api/src/Asyncservice.php @@ -450,6 +450,7 @@ class Asyncservice } // set VFS user for vfs access rights Vfs::$user = $job['account_id']; + Vfs\StreamWrapper::init_static(); Vfs::clearstatcache(); } else diff --git a/api/src/Vfs/UserContextTrait.php b/api/src/Vfs/UserContextTrait.php index 9c6cf34fa3..77eb87d7ba 100644 --- a/api/src/Vfs/UserContextTrait.php +++ b/api/src/Vfs/UserContextTrait.php @@ -210,6 +210,10 @@ trait UserContextTrait $this->context = stream_context_create($options); } } + else + { + $this->context = stream_context_create(); + } break; } }