nextcloud/lib/private/Files
Robin Appelman f5e2b0b22f
allow storing multiple mounts for the same rootid in the mount cache
currently `[$userId, $rootId]` is used as the unique key for storing mounts in the mount cache,
however there are cases where the same rootid is mounted in multiple places for a user which currently leads to not all of those mounts being added to the cache.

Previously this didn't matter as the mount cache was only used to list users with access to a specific file, so a user having access to the file multiple times didn' change anything.

With 24 the mount cache is used for more cases and multiple mounts for the same id becomes relevant.
While I think there isn't a real negative effect atm besides missing the optimized path we should ensure that the mounts are properly listed

Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-04-28 15:08:08 +02:00
..
AppData Move CappedMemoryCache to OCP 2022-07-14 15:54:31 +02:00
Cache Merge pull request #36857 from nextcloud/scan-repair-unencrypted-size 2023-04-24 15:24:50 +02:00
Config allow storing multiple mounts for the same rootid in the mount cache 2023-04-28 15:08:08 +02:00
Lock Adapt LockScope to LockContext rename 2022-04-07 11:52:16 +02:00
Mount Use typed version of IConfig::getSystemValue as much as possible 2023-04-05 12:50:08 +02:00
Node fix: Use proper path when creating node instances 2023-04-17 23:46:52 +02:00
Notify Update php licenses 2021-06-04 22:02:41 +02:00
ObjectStore Merge pull request #37534 from Rsplwe/master 2023-04-18 00:16:38 +02:00
Search extend path-prefix optimizer to remove all cases of path_hash= when encountering a path prefix filter 2023-01-11 16:38:41 +01:00
SimpleFS Fix return type of methods returning false on error 2023-04-03 10:52:34 +02:00
Storage Merge pull request #37818 from nextcloud/dav-ext-storage-log 2023-04-25 14:12:57 +02:00
Stream Fix psalm errors related to filesizes 2023-02-07 11:23:29 +01:00
Template Use typed version of IConfig::getSystemValue as much as possible 2023-04-05 12:50:08 +02:00
Type Put Mimeloader insertion and read in the same transaction 2023-04-17 13:32:02 +00:00
Utils better error messages if the users home is not writable during scanning 2023-04-05 13:21:30 +02:00
FileInfo.php View needs to return an instance of OC\Files\FileInfo explicitely 2023-04-03 10:52:35 +02:00
Filesystem.php Add missing taint analysis docblock comments, and improve escaping in some methods 2023-04-24 17:17:53 +02:00
SetupManager.php do onetime user setup before getting any mount from providers 2023-02-22 18:03:38 +01:00
SetupManagerFactory.php make mount cache duration configurable 2022-03-24 17:36:53 +01:00
View.php Remove unecessary fully qualified namespaces from phpdoc 2023-04-05 09:13:39 +02:00