Skip to content

Conversation

@backportbot-nextcloud
Copy link

@backportbot-nextcloud backportbot-nextcloud bot commented May 2, 2023

  • ⚠️ This backport had conflicts that were resolved with the 'ours' merge strategy and is likely incomplete

backport of #32877

@backportbot-nextcloud backportbot-nextcloud bot added this to the Nextcloud 25.0.7 milestone May 2, 2023
@icewind1991 icewind1991 force-pushed the backport/32877/stable25 branch from b4c0a67 to 8d0a47b Compare May 2, 2023 14:17
@icewind1991 icewind1991 marked this pull request as ready for review May 2, 2023 14:17
@blizzz blizzz mentioned this pull request May 16, 2023
@blizzz blizzz added the 3. to review Waiting for reviews label May 17, 2023
@blizzz
Copy link
Member

blizzz commented May 17, 2023

moving to 25.0.8

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 <[email protected]>
@icewind1991 icewind1991 force-pushed the backport/32877/stable25 branch from 8d0a47b to b9f4723 Compare May 31, 2023 14:16
@blizzz blizzz mentioned this pull request Jun 12, 2023
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@blizzz blizzz merged commit 2d75209 into stable25 Jun 15, 2023
@blizzz blizzz deleted the backport/32877/stable25 branch June 15, 2023 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants