Bug #42200 Invalid path shown in error message if upgrade installer fails to find curr path
Submitted: 19 Jan 2009 13:42 Modified: 28 Jan 2009 16:49
Reporter: Andrii Nikitin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Installing Severity:S3 (Non-critical)
Version:2.0 OS:Any
Assigned to: BitRock Merlin CPU Architecture:Any

[19 Jan 2009 13:42] Andrii Nikitin
Description:
See log from agent upgrade installer below. Note that error message shows different path from provided by user:

Please specify the directory that contains the previous installation of the MySQL
Enterprise Monitor Agent

Installation directory [/home/mysql/mysql/enterprise/agent]: /var/lib/mysql/agent

Warning: The directory /home/mysql/mysql/enterprise/agent does not contain a a
previous installation. Please select the right installation directory.
Press [Enter] to continue :
----------------------------------------------------------------------------
Please specify the directory that contains the previous installation of the MySQL
Enterprise Monitor Agent

How to repeat:
1. Run agent upgrade installer, specify folder with no installation
2. See error in description

Suggested fix:
Display correct path (specified by user) in error message
[22 Jan 2009 0:34] Andy Bang
I verified that you see the same behavior on Windows, too.
[22 Jan 2009 9:44] BitRock Merlin
Patch sent to Keith
[22 Jan 2009 19:03] Keith Russell
Patch applied in versions => 2.0.4.7139.
[23 Jan 2009 4:18] Marcos Palacios
Verified fixed in build 2.0.4.7139.
[28 Jan 2009 16:49] Tony Bedford
An entry has been added to the 2.0.4 changelog:

An invalid path was shown in the error message if the upgrade installer failed to find the previous install location.

The error message is shown below, note that the error message displays a different path to that provided by the user:

Please specify the directory that contains the previous installation of the MySQL
Enterprise Monitor Agent

Installation directory [/home/mysql/mysql/enterprise/agent]: /var/lib/mysql/agent

Warning: The directory /home/mysql/mysql/enterprise/agent does not contain a a
previous installation. Please select the right installation directory.
Press [Enter] to continue :
----------------------------------------------------------------------------
Please specify the directory that contains the previous installation of the MySQL
Enterprise Monitor Agent