mirror of
https://github.com/nextcloud/server.git
synced 2026-05-11 08:07:04 -04:00
Merge pull request #53783 from nextcloud/backport/53276/stable30
[stable30] fix(files_versions): Log failure to compute node path
This commit is contained in:
commit
0bd296659d
1 changed files with 19 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ use OC\DB\Exceptions\DbalException;
|
|||
use OC\Files\Filesystem;
|
||||
use OC\Files\Mount\MoveableMount;
|
||||
use OC\Files\Node\NonExistingFile;
|
||||
use OC\Files\Node\NonExistingFolder;
|
||||
use OC\Files\View;
|
||||
use OCA\Files_Versions\Storage;
|
||||
use OCA\Files_Versions\Versions\INeedSyncVersionBackend;
|
||||
|
|
@ -443,6 +444,24 @@ class FileEventsListener implements IEventListener {
|
|||
}
|
||||
}
|
||||
|
||||
if (!($node instanceof NonExistingFile) && !($node instanceof NonExistingFolder)) {
|
||||
$this->logger->debug('Failed to compute path for node', [
|
||||
'node' => [
|
||||
'path' => $node->getPath(),
|
||||
'owner' => $owner,
|
||||
'fileid' => $node->getId(),
|
||||
'size' => $node->getSize(),
|
||||
'mtime' => $node->getMTime(),
|
||||
]
|
||||
]);
|
||||
} else {
|
||||
$this->logger->debug('Failed to compute path for node', [
|
||||
'node' => [
|
||||
'path' => $node->getPath(),
|
||||
'owner' => $owner,
|
||||
]
|
||||
]);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue