Skip to content

Commit 361ff31

Browse files
authored
Merge pull request #16932 from nextcloud/fix/workflow/jails
Be sure to get the jailed path if the storage is a jail
2 parents 739e25e + f57fa23 commit 361ff31

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/workflowengine/lib/Manager.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
namespace OCA\WorkflowEngine;
2323

2424

25+
use OC\Files\Storage\Wrapper\Jail;
2526
use OCP\AppFramework\QueryException;
2627
use OCP\DB\QueryBuilder\IQueryBuilder;
2728
use OCP\Files\Storage\IStorage;
@@ -71,6 +72,10 @@ public function __construct(IDBConnection $connection, IServerContainer $contain
7172
*/
7273
public function setFileInfo(IStorage $storage, $path) {
7374
$this->storage = $storage;
75+
76+
if ($storage->instanceOfStorage(Jail::class)) {
77+
$path = $storage->getJailedPath($path);
78+
}
7479
$this->path = $path;
7580
}
7681

0 commit comments

Comments
 (0)