-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Platform: All, OS: Linux
In our build system, we make a symlink from the build tree to the system
configuration. When removing a project from Hudson, it all got deleted!
To reproduce:
Create a new job "Test".
$ ln -s ~/precious ~/.hudson/jobs/Test/builds/link-to-precious
$ ls ~/precious
my-data
Delete Project "Test" using the web interface.
$ ls ~/precious
My data is gone!
- is duplicated by
-
JENKINS-783 Checking out a fresh workspace deletes symlink targets
-
- Closed
-
[JENKINS-585] Hudson follows symlinks when deleting
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Progress [ 3 ] | New: Resolved [ 5 ] |
Link |
New:
This issue is duplicated by |
Resolution | Original: Fixed [ 1 ] | |
Status | Original: Resolved [ 5 ] | New: Reopened [ 4 ] |
See similar problem at
http://david.olrik.dk/articles/2006/02/01/ant-does-not-respect-symlinks
Java doesn't let us check if a directory is a symlink, nor does it support a
recursive deletion library call, so this is rather hard to do correctly.
I'm planning to try somewhere along the line of this:
http://joust.kano.net/weblog/archives/000071.html