Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[debug] [stable9.1] Fix initMountPoints to set usersSetup earlier #26396

Closed
wants to merge 1 commit into from

Conversation

PVince81
Copy link
Contributor

Description

This is needed because in some cases like LDAP, the user manager itself
might trigger avatar updates which would internally also call
initMountPoints with the same user. This could cause the same user to
be setup twice, and in some sharing situations could cause recursive
deduplication of shares by adding "(2)" every time.

Related Issue

Fixes #25718

Motivation and Context

See description

How Has This Been Tested?

Very difficult to reproduce: #25718 (comment)
Tested with the provided DB dump with LDAP + avatars, in an env where the issue could be reproduced.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Backports:

Potentially this issue could appear in previous versions as well, maybe in different forms, so I'd say let's backport to:

  • stable9
  • stable8.2
  • master / 9.2

@jvillafanez @DeepDiver1975

@mention-bot
Copy link

@PVince81, thanks for your PR! By analyzing the history of the files in this pull request, we identified @icewind1991, @nickvergessen and @MorrisJobke to be potential reviewers.

This is needed because in some cases like LDAP, the user manager itself
might trigger avatar updates which would internally also call
initMountPoints with the same user. This could cause the same user to
be setup twice, and in some sharing situations could cause recursive
deduplication of shares by adding "(2)" every time.
@PVince81 PVince81 force-pushed the stable9.1-userssetup-check branch from a7abe32 to 517277b Compare October 18, 2016 09:43
@PVince81
Copy link
Contributor Author

note: this might conflict with #26271.
I intend to first merge #26271 and then adjust this PR here accordingly.

@PVince81 PVince81 changed the title [stable9.1] Fix initMountPoints to set usersSetup earlier [debug] [stable9.1] Fix initMountPoints to set usersSetup earlier Oct 18, 2016
@PVince81
Copy link
Contributor Author

closing as this conflicts, but I want to keep the code as patch for the users of the original ticket to test on their 9.1.1 instance.

Superseded by #26399 which solves the conflicts.

@PVince81 PVince81 closed this Oct 18, 2016
@DeepDiver1975 DeepDiver1975 deleted the stable9.1-userssetup-check branch January 30, 2017 22:15
@lock
Copy link

lock bot commented Aug 4, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants