Skip to content
Snippets Groups Projects
Unverified Commit 4c7424d3 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

We need to initialize the storage else the jailed path is always null

parent 53e8957a
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment