Merge pull request #16932 from nextcloud/fix/workflow/jails

Be sure to get the jailed path if the storage is a jail
This commit is contained in:
Roeland Jago Douma 2019-09-04 08:55:47 +02:00 committed by GitHub
commit 361ff3127e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View 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;
}