NEW DATE! Bugzilla will undergo maintenance 2024-03-28 18h00 CET. Bugzilla will be placed in read-only mode at that time.

Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 20679 - TARGET: FTP download fails with deep directory structure
Summary: TARGET: FTP download fails with deep directory structure
Status: CLOSED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux
: P1 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Antonio D'souza CLA
QA Contact:
URL:
Whiteboard:
Keywords: readme
Depends on:
Blocks:
 
Reported: 2002-06-19 14:59 EDT by Antonio D'souza CLA
Modified: 2005-11-02 22:43 EST (History)
1 user (show)

See Also:


Attachments
A tarball of the directory structure that I am able to reproduce this problem with reliably. (110.00 KB, application/x-tar)
2002-06-19 15:02 EDT, Antonio D'souza CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio D'souza CLA 2002-06-19 14:59:16 EDT
Steps to reproduce:
Create a project and configure it to use an FTP target.
Login to the FTP server manually & create a directory structure 3 levels deep,
with some files in the deepest dir.
In Eclipse, attempt to sync the project with the target repo.
The sync view will show everything that has been manually created on the server.
Atempt to recursively download everything by selecting download from the context
menu of the project in the sync view.

Expected behavior:
The entire directory structure should be copied over to the local project.

Actual behavior:
An error dialog complains that one of the 3rd level subdirectries does not exist
(in the local project).

My suspicion:
Eclipse is attempting to create the child folder 3 levels down without ensuring
that its parent exists in the workspace.

For convenience of reproduction:
I have created a directory structure that is guarunteed to provoke this
situation. It is called p26 and is available under /tmp on fiji (fiji:/tmp/p26).
Just copy this directory structure to your test target folder.
Comment 1 Antonio D'souza CLA 2002-06-19 15:02:42 EDT
Created attachment 1517 [details]
A tarball of the directory structure that I am able to reproduce this problem with reliably.
Comment 2 Michael Valenta CLA 2002-06-19 15:15:36 EDT
This only happens in the sync view. It happening because ResourceState will 
only create an immediate parent of a resource. This may happen with DAV as well.
Fix is simple.
Comment 3 Antonio D'souza CLA 2002-07-17 14:09:09 EDT

*** This bug has been marked as a duplicate of 18177 ***
Comment 4 Antonio D'souza CLA 2002-08-01 16:11:04 EDT
This is actually a unique bug, which was fixed while I attempted to fix the one
I thought it was a dupe of. That bug may still exist, however. 
Comment 5 Antonio D'souza CLA 2002-08-09 16:46:30 EDT
Fix has been checked in.
Comment 6 Alex Rudnev CLA 2002-08-14 16:15:37 EDT
Can this fix (and/or fixes for the bug this one is duplicate of) be include 
into some integration build for branch 2.0.1
Comment 7 Antonio D'souza CLA 2005-11-02 22:43:11 EST
We're well past version 3 now and this bug has not resurfaced so it deserves to be closed.