From 9b639b1fe0344c8510a863d99fade994075b92ab Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 13 Dec 2017 10:10:04 +0100 Subject: [PATCH] Fix collabora can not open vfs symlinks from apps --- api/src/Vfs/Sqlfs/StreamWrapper.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/Vfs/Sqlfs/StreamWrapper.php b/api/src/Vfs/Sqlfs/StreamWrapper.php index 2314c69225..6eb6f73e6f 100644 --- a/api/src/Vfs/Sqlfs/StreamWrapper.php +++ b/api/src/Vfs/Sqlfs/StreamWrapper.php @@ -1565,6 +1565,10 @@ class StreamWrapper extends Api\Db\Pdo implements Vfs\StreamWrapperIface { $vfs = new self(); $stat = $vfs->url_stat($path,0); + if ($stat['readlink']) + { + $stat = $vfs->url_stat($stat['readlink'], 0); + } $fs_id = $stat['ino']; $query = 'SELECT MIN(B.fs_id)