mirror of
https://github.com/nextcloud/server.git
synced 2026-02-27 18:37:17 +01:00
fix(Propagator): Skip groupfolders root entries
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
committed by
backportbot[bot]
parent
e99ed0bbb2
commit
dbdb7ce74d
@@ -8,6 +8,7 @@
|
||||
namespace OC\Files\Cache;
|
||||
|
||||
use OC\DB\Exceptions\DbalException;
|
||||
use OC\Files\Storage\LocalRootStorage;
|
||||
use OC\Files\Storage\Wrapper\Encryption;
|
||||
use OCP\DB\QueryBuilder\IQueryBuilder;
|
||||
use OCP\Files\Cache\IPropagator;
|
||||
@@ -68,6 +69,10 @@ class Propagator implements IPropagator {
|
||||
$storageId = $this->storage->getStorageCache()->getNumericId();
|
||||
|
||||
$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) {
|
||||
|
||||
Reference in New Issue
Block a user