Skip to content

[stable21.1] Ignore current participant when listing rooms if removed concurrently#5758

Merged
nickvergessen merged 1 commit intostable21.1from
backport/5750/stable21.1
Jun 14, 2021
Merged

[stable21.1] Ignore current participant when listing rooms if removed concurrently#5758
nickvergessen merged 1 commit intostable21.1from
backport/5750/stable21.1

Conversation

@backportbot-nextcloud
Copy link

backport of #5750

When retrieving the conversation list for a user, there is a
time window between retrieving the list and the participant information.
If in that time window, a concurrent request removes the user from the
room, or even the room got deleted, this could cause a
ParticipantNotFoundException.

This fix prevents the latter exception to make the whole call return a
404. Instead, it skips the obsoleted entry and carries on with the list.

Signed-off-by: Vincent Petry <[email protected]>
@backportbot-nextcloud backportbot-nextcloud bot added this to the 💕 Next Minor (21.1) milestone Jun 14, 2021
@nickvergessen nickvergessen merged commit b4c4ec5 into stable21.1 Jun 14, 2021
@nickvergessen nickvergessen deleted the backport/5750/stable21.1 branch June 14, 2021 11:29
@nickvergessen nickvergessen modified the milestones: 💕 Next Minor (21.1), 💚 Next Patch (21) Jun 25, 2021
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.

2 participants