Bug #48219 MEM upgrader does not escape special characters
Submitted: 22 Oct 2009 2:13 Modified: 9 Jan 2015 10:35
Reporter: Jonathon Coombes Email Updates:
Status: Closed Impact on me:
Category:MySQL Enterprise Monitor: Installing Severity:S2 (Serious)
Version:2.1 OS:Any
Assigned to: Assigned Account CPU Architecture:Any
Tags: installer, mem, Merlin, upgrade

[22 Oct 2009 2:13] Jonathon Coombes
The MEM upgrade software does not escape special characters such as the pipe symbol in the username or password before passing then to other commands. This results in the error such as:

Error running /opt/mysql/enterprise/monitor/mysql/bin/mysql_upgrade
-uservice_manager -pPASSWORD_WITH_A_PIPE_HERE -P13306 -h127.0.0.1 : /bin/sh: XXX: not found
w: bad flag -P13306

How to repeat:
Set password or username to contain special characters, particularly the pipe symbol ('|') and try the upgrade.

Suggested fix:
Escape the characters before running the commands.
[28 Oct 2009 8:10] BitRock Merlin
Should we fix for 2.1 or 2.2 version? Could you specify the Target version?
[24 Jan 2010 22:08] MySQL Verification Team
Any update on the progress of fixing this bug?
[19 Mar 2010 13:02] Carsten Segieth
- see also Bug#52216 agent update installer creates wrong 'agent-mgmt-username = ...' entry in .ini