summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-02-13 21:01:17 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-02-13 21:01:17 +0100
commit4c7424d38b42ef2e1359095fcf620b2ef5cc3b77 (patch)
tree759bd0e179b9a1bab8cc5e50d9bc3837c7245462 /lib
parent53e8957a556af086ce66b8eba45f0013391d7f0d (diff)
downloadnextcloud-server-4c7424d38b42ef2e1359095fcf620b2ef5cc3b77.tar.gz
nextcloud-server-4c7424d38b42ef2e1359095fcf620b2ef5cc3b77.zip
We need to initialize the storage else the jailed path is always null
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Node/Folder.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Files/Node/Folder.php b/lib/private/Files/Node/Folder.php
index e35ca85a779..855515ad260 100644
--- a/lib/private/Files/Node/Folder.php
+++ b/lib/private/Files/Node/Folder.php
@@ -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;