Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 227443 - [Import/Export] Import existing projects into workspace can create infinite directory recursion.
Summary: [Import/Export] Import existing projects into workspace can create infinite d...
Status: CLOSED DUPLICATE of bug 279781
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.3.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Prakash Rangaraj CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-16 17:51 EDT by glasskarma CLA
Modified: 2010-11-09 03:38 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description glasskarma CLA 2008-04-16 17:51:15 EDT
Build ID: M20080221-1800

Steps To Reproduce:
(WinXP)
1. Eclipse workspace set to c:\src\workspace
2. Existing project in c:\src\research\myProject
3. File-->Import-->Existing Project into workspace
4. Select root directory: c:\src\research
        (my take: show me existing projects from this level down)
5. myProject appears in Projects window.
6. click Finish
7. Eclipse pops up with "overlapping directories" error
        (could be it reset it's workspace folder to the folder above?
            if so, this could be the bug)
8. Click CANCEL
9. Select 'copy projects into workspace'
10. Copy happens, BUT copy is recursive -- resulting directory structure:
 
    c:\src\research\myProject\
                                     <files>
                                      myProject\
                                          <files>
                                           myProject\
                                             <files>
                                              myProject\
                                                  <files>
                                                   myProject\
       etc ("infinite" recursion)


More information:
Caution: it seems the java platform can create directory paths with longer filenames than winXP supports (either explorer, or the OS itself, at least longer than the OS itself supports reading).  This means you will have to use e.g. rd in a dos prompt to delete.  Rename, delete, etc, via explorer will NOT work.  I was able to delete twice with rd (NOT rmdir), but the third time I had to use Unlocker.
Comment 1 Eric Moffatt CLA 2008-04-24 16:14:11 EDT
Tod, if there's a better place for these just let me know...
Comment 2 Michael Spector CLA 2009-05-20 10:11:43 EDT
Can't re-create using this scenario. Do you have any symbolic links in your project file hierarchy?
Comment 3 Michael Spector CLA 2009-05-20 10:12:25 EDT
sorry, I've updated this bug instead of this one:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=275553
Comment 4 Prakash Rangaraj CLA 2010-11-09 03:38:36 EST

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