Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Prevent double group invites from breaking a group#3128

Closed
vurpo wants to merge 2 commits intomatrix-org:developfrom
vurpo:fix-2633
Closed

Prevent double group invites from breaking a group#3128
vurpo wants to merge 2 commits intomatrix-org:developfrom
vurpo:fix-2633

Conversation

@vurpo
Copy link

@vurpo vurpo commented Apr 24, 2018

Fixes #2633. This just changes a constraint in the database schema to be unique, so that any attempt to invite a user to a group twice will just return a 500 error, and not break the database.

I don't know what would happen if you applied this update to an already-broken database, though. Maybe there should be an SQL statement before this one that deletes any duplicate group invites before attempting to add the unique requirement?

neilisfragile and others added 2 commits April 24, 2018 16:39
Rephrase v0.28.0-rc1 summary
(which previously broke the group completely)
@matrixbot
Copy link
Member

Can one of the admins verify this patch?

1 similar comment
@matrixbot
Copy link
Member

Can one of the admins verify this patch?

ara4n added a commit that referenced this pull request Apr 25, 2018
and rename inconsistently named indexes.
Based on #3128 - thanks @vurpo\!
@ara4n
Copy link
Member

ara4n commented Apr 25, 2018

thanks :) this needs to handle the users table too, as well as clean out dups before adding the indexes. as these are pretty major changes, rather than clobbering your PR i've made a new one which supersedes this one. #3129

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants