]> source.dussan.org Git - nextcloud-server.git/commitdiff
Be sure to get the jailed path if the storage is a jail 16991/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Fri, 30 Aug 2019 11:19:15 +0000 (13:19 +0200)
committerBackportbot <backportbot-noreply@rullzer.com>
Wed, 4 Sep 2019 06:56:34 +0000 (06:56 +0000)
Fixes: https://github.com/nextcloud/groupfolders/issues/583
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/workflowengine/lib/Manager.php

index 48d29cf207e26a07c4e0281cc9db52c325236dbb..080faa6bfc185bfdf7512e03463d4d5cd78e229f 100644 (file)
@@ -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;
        }