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

Bug 331464

Summary: Eclipse PDT DELETED entire import directory tree. Reproducable.
Product: z_Archived Reporter: matt
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact: Ilina Stefanova <ilina.s>
Severity: critical    
Priority: P2 CC: ganoro, kalin.a
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description matt CLA 2010-11-30 14:13:33 EST
Build Identifier: 20100917-0705

I tried to create a new PHP project with existing source.  I accidentally selected my entire web root with several hundred different websites (instead of the individual project I wanted), and clicked finished.  It started to import the files. After several minutes of waiting, I decided that I should just cancel the import of the entire web root, and just start over with the specific project.  I hit the "stop" button (big red square) next to the progress bar.  

It then proceed to delete my entire web root.  EVERY PROJECT.  Fortunately, I made a backup last night, so I only lost a few hours of work.  However this is a DANGEROUS problem and is completely not acceptable, If I hadn't backed up the web root last night I would have lost TONS of work!!!!

I have now reproduced this twice to confirm.  

Reproducible: Always

Steps to Reproduce:
1. ::Select Menu Item:: File -> New -> PHP Project
2. ::Fill Field:: Project Name
3. ::Select Option:: Create Project at Existing location (from existing source)
4. Select Target folder (the folder that I selected has approximately 29,000 files. So it takes a while to load.)
5. ::Click:: Finished
6. WHILE it is loading the directory click on the square red button (that when moused over says "Cancel Operation") -> This is important you must wait until it starts to read the files on the hard drive.
7. ::Click:: Cancel  (in the New PHP Project windows)
8. Results - EVERYTHING that was in the selected folder, all the pre-existing source you tried to import , and the selected folder it self have been permanently DELETED.
Comment 1 Zhongwei Zhao CLA 2011-04-28 01:03:01 EDT
fixed
Comment 2 Kalin CLA 2011-07-27 06:11:40 EDT
Verified.