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(sharing): resolveGroupShares setPermissions on null #44316

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

skjnldsv
Copy link
Member

Fix #44314

This is just mitigating the error itself, I don't know if the logic make sense overall

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv skjnldsv added this to the Nextcloud 29 milestone Mar 19, 2024
@skjnldsv skjnldsv requested review from icewind1991 and a team March 19, 2024 12:10
@skjnldsv skjnldsv self-assigned this Mar 19, 2024
@skjnldsv skjnldsv requested review from ArtificialOwl and sorbaugh and removed request for a team March 19, 2024 12:10
@icewind1991
Copy link
Member

Makes sense.

I originally thought that wouldn't be needed as there should only be USERGROUP shares if there is a matching parent share. But I guess not...

@skjnldsv skjnldsv requested review from artonge and come-nc March 19, 2024 12:10
Copy link
Contributor

@artonge artonge left a comment

Choose a reason for hiding this comment

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

The null 'parent' might occur for the root parent share itself?
Another solution would be to add a condition on 'parent' in the query so it is not null?

@Altahrim Altahrim mentioned this pull request Mar 19, 2024
@skjnldsv skjnldsv 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 19, 2024
@skjnldsv skjnldsv merged commit 323acaf into master Mar 19, 2024
167 checks passed
@skjnldsv skjnldsv deleted the fix/resolveGroupShares branch March 19, 2024 15:15
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 feature: sharing regression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Call to a member function setPermissions() on null
3 participants