Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Fix issue#20, bad handshake. #30

Merged
merged 1 commit into from
Jun 10, 2013
Merged

Fix issue#20, bad handshake. #30

merged 1 commit into from
Jun 10, 2013

Conversation

LeeXiaolan
Copy link

This issue is caused by old password using, but no diagnosis information gives out.

@jskorpan
Copy link

Can't bring in GPL:ed code I'm afraid. Our code is BSD. Sorry

On 14 apr 2013, at 04:04, "LeeXiaolan" <[email protected]mailto:[email protected]> wrote:

This issue is caused by old password using, but no diagnosis information gives out.


You can merge this Pull Request by running

git pull https://github.com/LeeXiaolan/ultramysql master

Or view, comment on, or merge it at:

#30

Commit Summary

  • Detect old password using when authentication failed and give out instruction to fix it.

File Changes

Patch Links:

@LeeXiaolan
Copy link
Author

Just merge fdb8b31, it is not gpl code.
Commit 3ab5f25 just personal use.

@jskorpan
Copy link

Ok I’ll take a look at it shortly, thanks!

From: Xiaolan.Lee [mailto:[email protected]]
Sent: den 16 april 2013 03:24
To: esnme/ultramysql
Cc: Jonas Tärnström
Subject: Re: [ultramysql] Fix issue#20, bad handshake. (#30)

Just merge fdb8b31fdb8b31, it is not gpl code.


Reply to this email directly or view it on GitHubhttps://github.com//pull/30#issuecomment-16421698.

@jskorpan jskorpan closed this Apr 19, 2013
@jskorpan jskorpan reopened this Apr 19, 2013
@@ -521,6 +521,12 @@ bool Connection::connect(const char *_host, int _port, const char *_username, co
m_dbgMethodProgress --;
return false;
}
if (result == 0xfe)
{
setError ("You are using old password, please update it use PASSWORD(), other than OLD_PASSWORD().", 4, UME_OTHER);

Choose a reason for hiding this comment

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

I think we could improve the clarity of this message.

Also
How can we be sure that result 0xfe really means this and only this?

//JT

Copy link
Author

Choose a reason for hiding this comment

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

Choose a reason for hiding this comment

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

Understood, merging it on friday!
Thanks for the contribution.
//JT

On 20 apr 2013, at 03:50, "Xiaolan.Lee" <[email protected]mailto:[email protected]> wrote:

In lib/Connection.cpp:

@@ -521,6 +521,12 @@ bool Connection::connect(const char *_host, int _port, const char *_username, co
m_dbgMethodProgress --;
return false;
}

  • if (result == 0xfe)
  • {
  • setError ("You are using old password, please update it use PASSWORD(), other than OLD_PASSWORD().", 4, UME_OTHER);

Check out http://dev.mysql.com/doc/internals/en/connection-phase.html#packet-Protocol::AuthSwitchResponse and http://dev.mysql.com/doc/internals/en/connection-phase.htm#packet-Protocol::OldAuthSwitchRequest


Reply to this email directly or view it on GitHubhttps://github.com//pull/30/files#r3884175.

jskorpan pushed a commit that referenced this pull request Jun 10, 2013
Fix issue#20, bad handshake.
@jskorpan jskorpan merged commit 50c4ef4 into esnme:master Jun 10, 2013
@jskorpan
Copy link

Can we add a test to the test suite to improve the test coverage?

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.

2 participants