Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Be sure to get the jailed path if the storage is a jail
Fixes: nextcloud/groupfolders#583

Signed-off-by: Roeland Jago Douma <[email protected]>
  • Loading branch information
rullzer authored and Backportbot committed Sep 4, 2019
commit b5f407e02d03e19ef820135347a69619b863538f
5 changes: 5 additions & 0 deletions apps/workflowengine/lib/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -71,6 +72,10 @@ public function __construct(IDBConnection $connection, IServerContainer $contain
*/
public function setFileInfo(IStorage $storage, $path) {
$this->storage = $storage;

if ($storage->instanceOfStorage(Jail::class)) {
$path = $storage->getJailedPath($path);
}
$this->path = $path;
}

Expand Down