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

handlers/register: make sure another user id is generated when a collision occurs #610

Merged
merged 1 commit into from
Mar 4, 2016

Conversation

Rugvip
Copy link

@Rugvip Rugvip commented Feb 29, 2016

Fixes a race condition that would cause user registration to fail with

twisted.python.failure.Failure sqlite3.IntegrityError: UNIQUE constraint failed: profiles.user_id

without returning an error to the client, but just setting the user id and access token to null.

…ision occurs

Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com>
@matrixbot
Copy link
Member

Can one of the admins verify this patch?

@erikjohnston
Copy link
Member

@matrixbot ok to test

erikjohnston added a commit that referenced this pull request Mar 4, 2016
handlers/register: make sure another user id is generated when a collision occurs
@erikjohnston erikjohnston merged commit ce82b9e into matrix-org:develop Mar 4, 2016
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.

3 participants