Bug #45432 Server Upgrade installer unconditionally overwrites the tomcat lib directory
Submitted: 10 Jun 2009 15:26 Modified: 25 Jun 2009 15:47
Reporter: Keith Russell Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Installing Severity:S3 (Non-critical)
Version:2.0.5.7153,2.1.0.1058 OS:Any
Assigned to: BitRock Merlin CPU Architecture:Any

[10 Jun 2009 15:26] Keith Russell
Description:
After the initial server installation a user may choose to implement OpenSSL native integration with Tomcat.  Doing this will modify the 'apache-tomcat/lib" directory.  Running a subsequent upgrade installer will overwrite the 'apache-tomcat/lib" directory which was modified during the OpenSSL native integration.  Initially assigning to Andy until recommended action is decided.

How to repeat:
Install the server, Integrate OpenSSL native with the installed tomcat, run an upgrade installer.

Suggested fix:
Referring to merlin mtx for possible options and suggested action.
[10 Jun 2009 16:31] Keith Russell
apache-tomcat/lib directory with openSSL

-rw-rw-r-- 1 root root   10368 2009-01-14 14:02 annotations-api.jar
-rw-rw-r-- 1 root root   47524 2009-01-14 14:02 catalina-ant.jar
-rw-rw-r-- 1 root root  117853 2009-01-14 14:02 catalina-ha.jar
-rw-rw-r-- 1 root root 1106069 2009-01-14 14:02 catalina.jar
-rw-rw-r-- 1 root root  220995 2009-01-14 14:02 catalina-tribes.jar
-rw-rw-r-- 1 root root   27699 2009-01-14 14:02 el-api.jar
-rw-rw-r-- 1 root root  101456 2009-01-14 14:02 jasper-el.jar
-rw-rw-r-- 1 root root  509617 2009-01-14 14:02 jasper.jar
-rw-rw-r-- 1 root root 1375531 2009-01-14 14:02 jasper-jdt.jar
-rw-rw-r-- 1 root root   80800 2009-01-14 14:02 jsp-api.jar
-rw-r--r-- 1 root root 1090846 2009-06-09 17:27 libtcnative-1.a
-rwxr-xr-x 1 root root     950 2009-06-09 17:27 libtcnative-1.la
lrwxrwxrwx 1 root root      23 2009-06-09 17:27 libtcnative-1.so -> libtcnative-1.so.0.1.10
lrwxrwxrwx 1 root root      23 2009-06-09 17:27 libtcnative-1.so.0 -> libtcnative-1.so.0.1.10
-rwxr-xr-x 1 root root  762930 2009-06-09 17:27 libtcnative-1.so.0.1.10
-rw-rw-r-- 1 root root  391834 2009-01-14 14:02 log4j-1.2.15.jar
-rw-rw-r-- 1 root root    1144 2009-01-14 14:02 log4j.properties
drwxr-xr-x 2 root root    4096 2009-06-09 17:27 pkgconfig
-rw-rw-r-- 1 root root   88537 2009-01-14 14:02 servlet-api.jar
-rw-rw-r-- 1 root root  726744 2009-01-14 14:02 tomcat-coyote.jar
-rw-rw-r-- 1 root root  172732 2009-01-14 14:02 tomcat-dbcp.jar
-rw-rw-r-- 1 root root   36414 2009-01-14 14:02 tomcat-i18n-es.jar
-rw-rw-r-- 1 root root   33610 2009-01-14 14:02 tomcat-i18n-fr.jar
-rw-rw-r-- 1 root root   39719 2009-01-14 14:02 tomcat-i18n-ja.jar
-rw-rw-r-- 1 root root   20912 2009-01-14 14:02 tomcat-juli-adapters.jar
-rw-rw-r-- 1 root root   17508 2009-01-14 14:02 tomcat-juli.jar

apache-tomcat/lib directory after running the upgrade installer

-rw-rw-r-- 1 root root   10368 2009-05-15 17:42 annotations-api.jar
-rw-rw-r-- 1 root root   47524 2009-05-15 17:42 catalina-ant.jar
-rw-rw-r-- 1 root root  117853 2009-05-15 17:42 catalina-ha.jar
-rw-rw-r-- 1 root root 1106069 2009-05-15 17:42 catalina.jar
-rw-rw-r-- 1 root root  220995 2009-05-15 17:42 catalina-tribes.jar
-rw-rw-r-- 1 root root   27699 2009-05-15 17:42 el-api.jar
-rw-rw-r-- 1 root root  101456 2009-05-15 17:42 jasper-el.jar
-rw-rw-r-- 1 root root  509617 2009-05-15 17:42 jasper.jar
-rw-rw-r-- 1 root root 1375531 2009-05-15 17:42 jasper-jdt.jar
-rw-rw-r-- 1 root root   80800 2009-05-15 17:42 jsp-api.jar
-rw-rw-r-- 1 root root  391834 2009-05-15 17:42 log4j-1.2.15.jar
-rw-rw-r-- 1 root root    1144 2009-05-15 17:42 log4j.properties
-rw-rw-r-- 1 root root   88537 2009-05-15 17:42 servlet-api.jar
-rw-rw-r-- 1 root root  726744 2009-05-15 17:42 tomcat-coyote.jar
-rw-rw-r-- 1 root root  172732 2009-05-15 17:42 tomcat-dbcp.jar
-rw-rw-r-- 1 root root   36414 2009-05-15 17:42 tomcat-i18n-es.jar
-rw-rw-r-- 1 root root   33610 2009-05-15 17:42 tomcat-i18n-fr.jar
-rw-rw-r-- 1 root root   39719 2009-05-15 17:42 tomcat-i18n-ja.jar
-rw-rw-r-- 1 root root   20912 2009-05-15 17:42 tomcat-juli-adapters.jar
-rw-rw-r-- 1 root root   17508 2009-05-15 17:42 tomcat-juli.jar
[10 Jun 2009 17:26] Andy Bang
A diff shows the following additional files/directories in apache-tomcat/lib directory with openSSL:

-rw-r--r-- 1 root root 1090846 2009-06-09 17:27 libtcnative-1.a
-rwxr-xr-x 1 root root     950 2009-06-09 17:27 libtcnative-1.la
lrwxrwxrwx 1 root root      23 2009-06-09 17:27 libtcnative-1.so -> libtcnative-1.so.0.1.10
lrwxrwxrwx 1 root root      23 2009-06-09 17:27 libtcnative-1.so.0 -> libtcnative-1.so.0.1.10
-rwxr-xr-x 1 root root  762930 2009-06-09 17:27 libtcnative-1.so.0.1.10
drwxr-xr-x 2 root root    4096 2009-06-09 17:27 pkgconfig
[17 Jun 2009 10:11] BitRock Merlin
Patch sent to Keith.
[18 Jun 2009 2:20] Keith Russell
Patch installed in versions => 2.1.0.1063.
[19 Jun 2009 21:53] Enterprise Tools JIRA Robot
Marcos Palacios writes: 
Verified fixed in monitor update installer build 2.1.0.1063.

To assure that "the installer puts back anything in apache-tomcat/lib from the previous installation that's not a JAR" we put an exec file in that dir before doing the upgrade. After the update, the exec file is still in that dir.

Also, we had OpenSSL working previous to the upgrade and it still works after it.
[25 Jun 2009 15:47] Tony Bedford
An entry was added to the 2.1.0 changelog:

After the initial server installation a user may select OpenSSL native integration with Tomcat. This will modify the apache-tomcat/lib directory. However, subsequently running an upgrade installer overwrote the apache-tomcat/lib directory which had been modified during the OpenSSL native integration.