From ca9c54518afa6ee4e152952ae63bf86967f6ffcc Mon Sep 17 00:00:00 2001 From: provokateurin Date: Wed, 18 Feb 2026 13:43:22 +0100 Subject: [PATCH] fix(Propagator): Skip groupfolders root entries Signed-off-by: provokateurin --- lib/private/Files/Cache/Propagator.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/private/Files/Cache/Propagator.php b/lib/private/Files/Cache/Propagator.php index fdd926d89ac..bffdfbe72bb 100644 --- a/lib/private/Files/Cache/Propagator.php +++ b/lib/private/Files/Cache/Propagator.php @@ -10,6 +10,7 @@ declare(strict_types=1); namespace OC\Files\Cache; use OC\DB\Exceptions\DbalException; +use OC\Files\Storage\LocalRootStorage; use OC\Files\Storage\Wrapper\Encryption; use OCP\DB\QueryBuilder\ILiteral; use OCP\DB\QueryBuilder\IQueryBuilder; @@ -51,6 +52,10 @@ class Propagator implements IPropagator { $storageId = $this->storage->getCache()->getNumericStorageId(); $parents = $this->getParents($internalPath); + if ($this->storage->instanceOfStorage(LocalRootStorage::class) && str_starts_with($internalPath, '__groupfolders')) { + // Remove '' and '__groupfolders' + $parents = array_slice($parents, 2); + } if ($this->inBatch) { foreach ($parents as $parent) {