deleteFile deletes files recursively following symbolic links.
--------------------------------------------------------------

                 Key: FELIX-1870
                 URL: https://issues.apache.org/jira/browse/FELIX-1870
             Project: Felix
          Issue Type: Bug
            Reporter: Peter Lawrey


In org.apache.felix.karaf.admin.internal.InstanceImpl.deleteFile() it does a 
recursive delete.
However, it only tests for isDirectory() which is true for links to directories.
e.g. a link to root would attempt to delete everything it can, repeatedly until 
the filenames became too long. ;)

Apache's FileUtils.isSymlink() does a check and in fact using 
FileUtils.deleteDirectory() would fix the problem. Perhaps this is a better 
choice.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to