Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321273

Summary: Linking folder to WebContent directory deletes folder's content
Product: [WebTools] WTP Java EE Tools Reporter: Paul MacDougall <me>
Component: jst.j2eeAssignee: jst.j2ee <jst.j2ee-inbox>
Status: NEW --- QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: david_williams, Olivier_Thomann
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Paul MacDougall CLA 2010-07-29 18:20:04 EDT
Build Identifier: 20100617-1415

In a Dynamic Web Project, when I attempt to link a folder as a subfolder to the WebContent all files in the linked folder are deleted.

This only happens when linking the folder using the "default" file system.  If I use "RSE" things seem to work as expected.

Reproducible: Always

Steps to Reproduce:
1. Create new Dynamic Web Project
2. Create a folder in the project root e.g. "linkMe"
3. Create a file "testFile.txt" in the "linkeMe" folder
4. Link "linkMe" as a new folder under WebContent using the default file system.  Right click on WebContent, New, Folder, click Advanced, select "Link to alternate location", browse to the "linkMe" created in step 2, Finish
5. the file created in step 3 will no longer be there.
6. any new file created in the original "linkMe" folder will be removed, but if it is created under the linked folder it remains.
Comment 1 Olivier Thomann CLA 2010-07-29 20:33:37 EDT
Moving to WTP
Comment 2 Paul MacDougall CLA 2010-09-08 12:52:46 EDT
My earlier comment about it not happening when using "RSE" was incorrect.  It still happens.
Comment 3 Paul MacDougall CLA 2010-09-08 12:52:56 EDT
Tried under Ubuntu 10.04(32-bit) with the same result.
Comment 4 David Williams CLA 2010-09-08 14:48:09 EDT
Does this bug (use-case) depend on the folders being named the same? Is that the point? Or any 'ol linked folder?
Comment 5 Paul MacDougall CLA 2010-09-08 16:07:09 EDT
any 'ol linked folder