User Manager: Changing password and adding host at the same time results in query error #2427

Closed
dmoagx opened this Issue Feb 28, 2016 · 2 comments

Projects

None yet

2 participants

@dmoagx
Collaborator
dmoagx commented Feb 28, 2016

When adding a new host to a user SP will use this query (where password is copied from an existing user):

CREATE USER 'horst'@'%' IDENTIFIED BY PASSWORD '*27193CCC36970235099CF910EC3128B90A4EB4D4';

When changing a pasword the query is:

SET PASSWORD FOR 'horst'@'%' = PASSWORD('test');

However, when both adding a new host and changing the password at the same time the query is:

CREATE USER 'horst'@'localhost' IDENTIFIED BY PASSWORD 'foobar';

This is invalid and will be rejected by MySQL with Password hash should be a 41-digit hexadecimal number (or similar).

@dmoagx dmoagx added the Bug label Feb 28, 2016
@dmoagx dmoagx changed the title from User Manager: Changing password and adding host at the same time results in error to User Manager: Changing password and adding host at the same time results in query error Feb 28, 2016
@dmoagx dmoagx added a commit that referenced this issue Mar 3, 2016
@dmoagx dmoagx Fix an issue where changing a user password and adding a host at the …
…same time would result in a query error (#2427)
0ac1ebf
@dmoagx dmoagx added a commit that referenced this issue Mar 3, 2016
@dmoagx dmoagx Fix #2427 for 1.1.x branch
Backport of 0ac1ebf
393e467
@dmoagx dmoagx added this to the 1.1.2 milestone Mar 6, 2016
@abhibeckert
Collaborator

@dmoagx can you confirm this is fixed close the issue?

@dmoagx
Collaborator
dmoagx commented Jul 9, 2016

This has been included in 1.1.2

@dmoagx dmoagx closed this Jul 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment