Merge pull request #53783 from nextcloud/backport/53276/stable30

[stable30] fix(files_versions): Log failure to compute node path
This commit is contained in:
Ferdinand Thiessen 2025-07-03 11:04:28 +02:00 committed by GitHub
commit 0bd296659d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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