|Summary:||Tomcat 8 uninstaller entres a symbolic link and deletes its contents|
|Product:||Tomcat 8||Reporter:||Birger Skogeng Pedersen <birger.sp>|
|Component:||Util||Assignee:||Tomcat Developers Mailing List <dev>|
Description Birger Skogeng Pedersen 2016-02-19 07:45:44 UTC
My Tomcat 8 installation folder contained a symbolic link to a folder (A) for some project of mine. When uninstalling tomcat, the contents of my project folder (A) was removed.
Comment 1 Mark Thomas 2016-02-19 08:40:01 UTC
Which operating system was this on?
Comment 2 Birger Skogeng Pedersen 2016-02-19 08:40:53 UTC
Comment 3 Birger Skogeng Pedersen 2016-02-19 08:42:53 UTC
(In reply to Mark Thomas from comment #1) > Which operating system was this on? Windows 10
Comment 4 Mark Thomas 2016-02-25 20:40:55 UTC
Thanks for the additional information. NSIS (the tool we use to build the Tomcat installer) follows symbolic links so the recursive delete which is part of the uninstall was responsible for removing the contents of the symlinked directory. I have modified the uninstaller so it first removes all symlinks from the Tomcat installation directory and any sub-directories before it does the recursive deletes. The fix has been applied to 9.0.x for 9.0.0.M4 onwards, 8.0.x for 8.0.33 onwards, 7.0.x for 7.0.69 onwards and 6.0.x for 6.0.46 onwards.