Skip to content

don't crash in get_invite_by_invitee_t for sql backend#4566

Merged
badlop merged 1 commit intoprocessone:masterfrom
sstrigler:fix-crash-in-get_invites_tree
Apr 14, 2026
Merged

don't crash in get_invite_by_invitee_t for sql backend#4566
badlop merged 1 commit intoprocessone:masterfrom
sstrigler:fix-crash-in-get_invites_tree

Conversation

@sstrigler
Copy link
Copy Markdown
Contributor

There was a missing where clause for the type of the invite.

Furthermore we need to check roster_only invites if they have been used for creating the account - here it can happen invitee is not being set (yet).

Fixes #4565

@sstrigler sstrigler force-pushed the fix-crash-in-get_invites_tree branch from 9fe3ef2 to 28c5e21 Compare April 12, 2026 12:40
Comment thread src/mod_invites_mnesia.erl
@sstrigler sstrigler force-pushed the fix-crash-in-get_invites_tree branch from 28c5e21 to 2a65148 Compare April 12, 2026 12:55
There was a missing where clause for the type of the invite.

Furthermore we need to check roster_only invites if they have been used for
creating the account - here it can happen invitee is not being set (yet).
@sstrigler sstrigler force-pushed the fix-crash-in-get_invites_tree branch from 2a65148 to 3c1c77a Compare April 12, 2026 14:23
@badlop badlop merged commit 4819505 into processone:master Apr 14, 2026
19 checks passed
@badlop badlop added this to the ejabberd 26.xx milestone Apr 14, 2026
@badlop badlop added the Component:Invites Invite-based account registration, implemented in mod_invites label Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component:Invites Invite-based account registration, implemented in mod_invites

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash in mod_invites when more then one invite for invitee.

2 participants