Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Mar 4, 2016

Conversation

Projects
None yet
3 participants
Contributor

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.

handlers/register: make sure another user id is generated when a coll…
…ision occurs

Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com>

Can one of the admins verify this patch?

Owner

erikjohnston commented Feb 29, 2016

@matrixbot ok to test

erikjohnston added a commit that referenced this pull request Mar 4, 2016

Merge pull request #610 from Rugvip/unique-user
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

1 of 2 checks passed

Synapse Build #6260 failed in 5 min 19 sec
Details
default Build finished. 371 tests run, 0 skipped, 0 failed.
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment