From: Roeland Jago Douma Date: Fri, 30 Aug 2019 11:19:15 +0000 (+0200) Subject: Be sure to get the jailed path if the storage is a jail X-Git-Tag: v15.0.12RC1~16^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2f0a9f21758002244912fbf5d49e2dd56eff9884;p=nextcloud-server.git 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 --- 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; }