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

fix(mysql_handler): salt characters should be ascii. #4810

Merged
merged 1 commit into from
Apr 12, 2022

Conversation

youngsofun
Copy link
Member

@youngsofun youngsofun commented Apr 12, 2022

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

passwordCharacterEncoding is utf8mb4 by default https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-connp-props-connection.html#cj-conn-prop_passwordCharacterEncoding

code refer to

https://github.com/mysql/mysql-server/blob/3290a66c89eb1625a7058e0ef732432b6952b435/mysys/crypt_genhash_impl.cc#L421

current opensrv impl make sure salt followed by "\0"

Changelog

  • Bug Fix

Related Issues

Fixes #4802

@vercel
Copy link

vercel bot commented Apr 12, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/databend/databend/BkrQZBp17sFhuctfsCYEiuZQjtxV
✅ Preview: Ignored

@mergify
Copy link
Contributor

mergify bot commented Apr 12, 2022

Thanks for the contribution!
I have applied any labels matching special text in your PR Changelog.

Please review the labels and make any necessary changes.

@mergify mergify bot added the pr-bugfix this PR patches a bug in codebase label Apr 12, 2022
Copy link
Member

@BohuTANG BohuTANG left a comment

Choose a reason for hiding this comment

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

@BohuTANG BohuTANG merged commit b5dab7b into databendlabs:main Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-review pr-bugfix this PR patches a bug in codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Authenticate failed, user: "wubx", auth_plugin: "mysql_native_password"
3 participants