Bug #79680 Long user names prevent stored procedure/function creation
| Submitted: | 16 Dec 2015 20:54 | Modified: | 30 Jan 2017 15:58 |
|---|---|---|---|
| Reporter: | Todd Farmer (OCA) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Security: Privileges | Severity: | S2 (Serious) |
| Version: | 5.7.10 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[16 Dec 2015 20:54]
Todd Farmer
[21 Dec 2015 17:52]
Todd Farmer
There are also privilege tables in INFORMATION_SCHEMA with GRANTEE column definitions of CHAR(81). This causes output to be truncated:
mysql> SELECT * FROM user_privileges
-> WHERE grantee LIKE '_a1%'\G
*************************** 1. row ***************************
GRANTEE: 'a12345678901234567890'@'h12345678901234567890123456789012345678
90123456789012345
TABLE_CATALOG: def
PRIVILEGE_TYPE: USAGE
IS_GRANTABLE: NO
1 row in set (0.00 sec)
mysql> SELECT user, host
-> FROM mysql.user
-> WHERE user LIKE 'a1%'\G
*************************** 1. row ***************************
user: a12345678901234567890
host: h12345678901234567890123456789012345678901234567890123456789
1 row in set (0.00 sec)
[30 Jan 2017 15:58]
Paul DuBois
Posted by developer: Noted in 8.0.0 changelog. Some grant tables did not account for the increase in maximum user name length from 16 to 32 characters in MySQL 5.7.8.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.038 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.