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

fix: always add user to group cache #42931

Merged
merged 1 commit into from Mar 26, 2024
Merged

Conversation

hrenard
Copy link
Contributor

@hrenard hrenard commented Jan 18, 2024

Summary

When there is no user in a group, and we add one, it's not added to the group cache. So consecutive call of addUser() and getUsers() is inconsistent. Furthermore, the user cache is never null, so this check is unesserary.

Checklist

@solracsf solracsf added the 3. to review Waiting for reviews label Jan 18, 2024
@solracsf solracsf added this to the Nextcloud 29 milestone Jan 18, 2024
@solracsf solracsf added the bug label Jan 18, 2024
@solracsf solracsf requested review from a team, ArtificialOwl, Altahrim and Fenn-CS and removed request for a team January 18, 2024 12:45
@Altahrim Altahrim mentioned this pull request Mar 12, 2024
When there is no user in a group, and we add one, it's not added to the group cache. So consecutive call of addUser() and getUsers() is inconsistent.
Furthermore, the user cache is never null, so this check is unesserary.

Signed-off-by: Hugo Renard <hugo.renard@protonmail.com>
@Altahrim Altahrim added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Mar 26, 2024
@Altahrim Altahrim merged commit 42f4e6a into nextcloud:master Mar 26, 2024
166 checks passed
Copy link

welcome bot commented Mar 26, 2024

Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants