mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
We need to initialize the storage else the jailed path is always null
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
53e8957a55
commit
4c7424d38b
1 changed files with 4 additions and 0 deletions
|
|
@ -27,6 +27,7 @@
|
|||
namespace OC\Files\Node;
|
||||
|
||||
use OC\DB\QueryBuilder\Literal;
|
||||
use OCA\Files_Sharing\SharedStorage;
|
||||
use OCP\DB\QueryBuilder\IQueryBuilder;
|
||||
use OCP\Files\Config\ICachedMountInfo;
|
||||
use OCP\Files\FileInfo;
|
||||
|
|
@ -416,6 +417,9 @@ class Folder extends Node implements \OCP\Files\Folder {
|
|||
private function getAbsolutePath(IMountPoint $mount, $path) {
|
||||
$storage = $mount->getStorage();
|
||||
if ($storage->instanceOfStorage('\OC\Files\Storage\Wrapper\Jail')) {
|
||||
if ($storage->instanceOfStorage(SharedStorage::class)) {
|
||||
$storage->getSourceStorage();
|
||||
}
|
||||
/** @var \OC\Files\Storage\Wrapper\Jail $storage */
|
||||
$jailRoot = $storage->getUnjailedPath('');
|
||||
$rootLength = strlen($jailRoot) + 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue