Community
Participate
Working Groups
From: "Edwin Fine" <edwin.fine@commercequest.com> Newsgroups: eclipse.tools Subject: Bug report: UI deletes files from disk unexpectedly Date: Thu, 25 Oct 2001 12:42:59 -0400 I am using WSW 1.0 on Windows 2000 SP1. I have just managed to delete files from my hard disk -- that I did not want to delete! -- using WSW due to a bug in the UI. Here is how to recreate the bug, which is unfortunately very repeatable. 1. Create a new project: File > New > Project and select Simple Project. 2. On the next page of the wizard, put in a project name of DeleteMe, and uncheck the "Use default location" checkbox. 3. Enter or browse to the location of an existing directory on your hard disk. WARNING: ALL NON-READONLY FILES WILL BE DELETED, so make sure you use a directory containing files you don't care about deleting! I created and used D:\junk. Ensure that at least one file in the directory has its read-only attribute set. 4. Press the Finish button. 5. Expand the DeleteMe project to ensure that all the files in the chosen folder are displayed. 6. Highlight the DeleteMe project name in the Navigator pane, and press the Delete key. 7. A message box appears, stating "About to delete project 'DeleteMe'. Delete all its contents under 'D:\junk' also?" 8. Press the No button. The expected behavior (to me, anyway) is that the UI will NOT delete the contents of d:\junk. 9. Now another message box appears, stating "xxxx is read-only. Do you still wish to delete it?" There are four choices" Yes, Yes to All, No, and Cancel. ************************************************** Pressing "No" causes *every non-read only* file in that directory to be deleted!!! ************************************************** Pressing Cancel does not cancel the entire delete operation. You get presented with a message box for each read-only file in that directory. If you cancel each and every time you see the message box, your files will be safe, but heaven help you if you reply No! Expected operation: If you select No to the "About to delete project" message box (step 7. above) it should NOT query you about read-only files but should quietly remove the project from the workspace and leave the files alone! Edwin Fine CommerceQuest, Inc. Edwin.Fine@CommerceQuest.Com Simon Note: The problem only happens if you select "no" for deleting read-only files. Selecting yes or yes to all or cancel will work properly.
*** This bug has been marked as a duplicate of 4938 ***