aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-09-04 08:55:47 +0200
committerGitHub <noreply@github.com>2019-09-04 08:55:47 +0200
commit361ff3127eff8ba2f63bfbd9d56e7d39cd97c83f (patch)
treec4d0683bce742bb132521577908d0b9d8754e347
parent739e25e1db8bb2bbfc62c18bc8c0d95ddbc5e9bc (diff)
parentf57fa231f7e4d2e9ec11a8d28d2493ffd39f2c6c (diff)
downloadnextcloud-server-361ff3127eff8ba2f63bfbd9d56e7d39cd97c83f.tar.gz
nextcloud-server-361ff3127eff8ba2f63bfbd9d56e7d39cd97c83f.zip
Merge pull request #16932 from nextcloud/fix/workflow/jails
Be sure to get the jailed path if the storage is a jail
-rw-r--r--apps/workflowengine/lib/Manager.php5
1 files changed, 5 insertions, 0 deletions
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;
}