Skip to content

Conversation

@PVince81
Copy link
Member

Fixes #30280

Group shares might exist even after a group got deleted.
To prevent log pollution when fetching notifications, this fix catches
the non-existing group situation and throws a different exception that
gets ignored. Without this, the log will contain an error about calling
inGroup on null.

The solution uses the same approach (InvalidArgumentException) that exists already in the code for the case where the user is null.

But this doesn't solve the mystery why deleting a group doesn't delete the share... there might be a cron job that does so at some point but I'm not sure

@PVince81
Copy link
Member Author

/backport to stable23

@PVince81
Copy link
Member Author

/backport to stable22

@PVince81
Copy link
Member Author

/backport to stable21

Group shares might exist even after a group got deleted.

This fix catches the situation and discards the notification for the
obsolete group.

Signed-off-by: Vincent Petry <[email protected]>
Co-authored-by: Joas Schilling <[email protected]>
@PVince81 PVince81 force-pushed the bugfix/30280/fix-confused-notifier-with-null-group branch from 53a69a0 to 4559a46 Compare December 15, 2021 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Notification for group share stuck with log messages after group is deleted

7 participants