grant on master could break replication and unauthorised user creation slaves
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Server |
Unknown
|
Unknown
|
|||
Percona Server moved to https://jira.percona.com/projects/PS |
Invalid
|
Undecided
|
Unassigned | ||
5.1 |
Won't Fix
|
Undecided
|
Unassigned | ||
5.5 |
Triaged
|
High
|
Unassigned | ||
5.6 |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Latest Percona Server 5.1.73.
Master with slave.
On master as root:
grant usage,select,create routine,execute on test.* to 'miguel'@'%' with grant option;
On master as miguel:
CREATE FUNCTION hello (s CHAR(20)) RETURNS CHAR(50) DETERMINISTIC RETURN CONCAT('Hello, ',s,'!');
GRANT EXECUTE on FUNCTION hello TO 'yyy'@'%';
Last command fails with:
ERROR 1410 (42000): You are not allowed to create a user with GRANT
and slave breaks with:
so, the user yyy is created on the slave.
Changed in percona-server: | |
status: | New → Confirmed |
tags: | added: upstream |
Tested in PS 5.1 and PS 5.5. It doesn't fail on PS 5.6 and the user is also not created.
Tested in MySQL 5.1 and MySQL 5.5. It doesn't fail on MySQL 5.6 and the user is also not created.