Community
Participate
Working Groups
When I delete a folder in the workspace (using the delete action offered by the Navigator or Project Explorer) which contains linked resources (folders or files) the link targets are removed from the filesystem. I'd expect the same behaviour as when deleting linked resources directly (only link is deleted, resources on the filesystem untouched) instead. Steps to reproduce: 1) Create a folder 'somefolder' in the filesystem and a file 'somefile' in it 2) Create a simple project in eclipse 3) Create a folder 'parent' in that project 4) Create a subfolder 'child' that links to 'somefolder' (Advanced tab in the wizard) 5) Select "Delete" on 'parent' Afterwards 'parent' and 'child' are removed from the workspace, 'somefolder' still exists in the filesystem, but 'somefile' is gone.
I can reproduce this.
Bug occurs when the KEEP_HISTORY flag is set. On delete, files are moved into the local history. When keeping history we shouldn't recurse into links because they are not being deleted.
Created attachment 43468 [details] minimal fix
I have released a fix to the 3.3 stream, but will leave this open to backport to 3.2.1 when that stream is open for development.
Also released a test case in 3.3 stream: LinkedResourceTest.testDeleteLinkParent
Thanks for the quick fix. Having it backported to 3.2.1 would be great since I cannot make use of linked resources without this fix.
Fix released to 3_2_maintenance stream for next 3.2.1 build.
*** Bug 152727 has been marked as a duplicate of this bug. ***