Comment 3 for bug 1544443

Revision history for this message
Jaime Sicam (jssicam) wrote :

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 }