mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
Fix updater when getFileInfo fails
This commit is contained in:
parent
3ff12ef4ec
commit
c87658feda
1 changed files with 4 additions and 1 deletions
5
lib/private/files/cache/updater.php
vendored
5
lib/private/files/cache/updater.php
vendored
|
|
@ -119,6 +119,9 @@ class Updater {
|
|||
|
||||
if ($uid != \OCP\User::getUser()) {
|
||||
$info = \OC\Files\Filesystem::getFileInfo($filename);
|
||||
if (!$info) {
|
||||
return array($uid, '/files/' . $filename);
|
||||
}
|
||||
$ownerView = new \OC\Files\View('/' . $uid . '/files');
|
||||
$filename = $ownerView->getPath($info['fileid']);
|
||||
}
|
||||
|
|
@ -150,7 +153,7 @@ class Updater {
|
|||
$cache->update($id, array('mtime' => $time, 'etag' => $storage->getETag($internalPath)));
|
||||
if ($realPath !== '') {
|
||||
$realPath = dirname($realPath);
|
||||
if($realPath === DIRECTORY_SEPARATOR ) {
|
||||
if ($realPath === DIRECTORY_SEPARATOR) {
|
||||
$realPath = "";
|
||||
}
|
||||
// check storage for parent in case we change the storage in this step
|
||||
|
|
|
|||
Loading…
Reference in a new issue