Bug 3130 - Move project to sub-dir not disallowed (1GKMHM5)
Summary: Move project to sub-dir not disallowed (1GKMHM5)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:49 EDT by Simon Arsenault CLA
Modified: 2002-04-15 10:10 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-10 22:49:59 EDT
- Create a project P1 and set its location to be d:\test
	- Create a file in P1
	- From the file system, create a folder f1 in d:\test
	- Select move from the project P1
	- Type in d:\test\f1 and press OK

	Notice the move takes place. However, notice the directory
	d:\test is then deleted causing the sub dir f1 to be deleted too,
	and the file.

NOTES:
Comment 1 DJ Houghton CLA 2001-10-24 06:45:21 EDT
PRODUCT VERSION:
	0.131

Comment 2 Rodrigo Peretti CLA 2001-11-23 16:58:40 EST
Ooops... Moving the project to a subdir should be a valid operation. But the 
current behaviour seems... humm... "less than optimal" (being polite).
Comment 3 DJ Houghton CLA 2001-12-14 16:56:17 EST
Project.checkDescription calls Workspace.validateProjectLocation which checks 
the location of the given description against the location of all the projects 
in the workspace to ensure that there is no overlapping. 

Unfortuanatly we skip over the current project because in most cases we don't 
want to consider the location of the current project as part of the validation. 
But this is one case were we do.
Comment 4 Eli Gordon CLA 2002-03-13 20:20:38 EST
As a user that has just lost a considerable amount of code due to this bug, I 
would like to ask that its priority and severity be increased. After all, it's 
not like this bug is simply a feature that doesn't work--it actually deletes 
code(!!!)
Comment 5 John Arthorne CLA 2002-04-15 10:10:15 EDT
Fixed.  validateProjectLocation now disallows moving a project to a subdirectory 
of itself.