I believe the issue is with line 74 of auth_mapping.c which ignores spaces for tokens. However, you can't just simply remove "!isspace(*ptr)" because if the authentication string has spaces, it won't be able to parse tokens properly:
Eg.
"dba=mysql_dba,developer=mysql_dev,api developers=mysql_api" //This would work
"dba=mysql_dba, developer=mysql_dev, api_developers=mysql_api" //This would no longer work
74 while (*ptr && !isspace(*ptr) && *ptr != ',' && *ptr != '=')
75 {
76 ++token->token_len;
77 ++ptr;
78 }
I believe the issue is with line 74 of auth_mapping.c which ignores spaces for tokens. However, you can't just simply remove "!isspace(*ptr)" because if the authentication string has spaces, it won't be able to parse tokens properly: dba,developer= mysql_dev, api developers= mysql_api" //This would work mysql_dev, api_developers= mysql_api" //This would no longer work
Eg.
"dba=mysql_
"dba=mysql_dba, developer=
74 while (*ptr && !isspace(*ptr) && *ptr != ',' && *ptr != '=')
75 {
76 ++token->token_len;
77 ++ptr;
78 }