Bug 5259 - EC: Project delete removes files on disk even when "no" selected
Summary: EC: Project delete removes files on disk even when "no" selected
Status: RESOLVED DUPLICATE of bug 4938
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: Kevin Haaland CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-25 13:28 EDT by Simon Arsenault CLA
Modified: 2001-10-25 14:03 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Arsenault CLA 2001-10-25 13:28:26 EDT
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.
Comment 1 John Arthorne CLA 2001-10-25 14:03:33 EDT

*** This bug has been marked as a duplicate of 4938 ***