From 2f0a9f21758002244912fbf5d49e2dd56eff9884 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 30 Aug 2019 13:19:15 +0200 Subject: [PATCH] Be sure to get the jailed path if the storage is a jail Fixes: https://github.com/nextcloud/groupfolders/issues/583 Signed-off-by: Roeland Jago Douma --- apps/workflowengine/lib/Manager.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/workflowengine/lib/Manager.php b/apps/workflowengine/lib/Manager.php index 48d29cf207e..080faa6bfc1 100644 --- a/apps/workflowengine/lib/Manager.php +++ b/apps/workflowengine/lib/Manager.php @@ -22,6 +22,7 @@ namespace OCA\WorkflowEngine; +use OC\Files\Storage\Wrapper\Jail; use OCP\AppFramework\QueryException; use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\Files\Storage\IStorage; @@ -71,6 +72,10 @@ class Manager implements IManager { */ public function setFileInfo(IStorage $storage, $path) { $this->storage = $storage; + + if ($storage->instanceOfStorage(Jail::class)) { + $path = $storage->getJailedPath($path); + } $this->path = $path; } -- 2.39.5