Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql: Fix InsertUser identity bug. #1635

Merged
merged 1 commit into from
Apr 29, 2022
Merged

mysql: Fix InsertUser identity bug. #1635

merged 1 commit into from
Apr 29, 2022

Conversation

lukebp
Copy link
Member

@lukebp lukebp commented Apr 29, 2022

This fixes a bug in the InsertUser function of the mysql user database
implementation.

When a new user record is inserted into the database, both the users
table and the identities table must be updated. The InsertUser function
was not updating the identities table, which was causing user by public
key lookups to fail.

The InsertUser function is only used during database migrations. This
bug does not impact regular politeia use.

This bug was introduce by 0b1982a.

This fixes a bug in the InsertUser function of the mysql user database
implementation.

When a new user record is inserted into the database, both the users
table and the identities table must be updated. The InsertUser function
was not updating the identities table, which was causing user by public
key lookups to fail.

The InsertUser function is only used during database migrations. This
bug does not impact regular politeia use.

This bug was introduce by 0b1982a.
Copy link
Member

@alexlyp alexlyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK looks good

@lukebp lukebp merged commit 65bee18 into decred:master Apr 29, 2022
@lukebp lukebp deleted the mysql-bug branch July 6, 2022 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants