Bug 59031 - Tomcat 8 uninstaller entres a symbolic link and deletes its contents
Summary: Tomcat 8 uninstaller entres a symbolic link and deletes its contents
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Util (show other bugs)
Version: 8.0.x-trunk
Hardware: PC All
: P2 normal (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-19 07:45 UTC by Birger Skogeng Pedersen
Modified: 2016-02-25 20:40 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
Windows 10
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.