Bug 3078 - Possible to create a file with a path inconsistent with the file system path (1GGLYSN)
Summary: Possible to create a file with a path inconsistent with the file system path ...
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kevin Haaland CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:49 EDT by Tod Creasey CLA
Modified: 2002-01-22 12:39 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tod Creasey CLA 2001-10-10 22:49:04 EDT
If you create a file with the name
		fred\bob 

	in a project and folder with path

	/proj/folder

	You will get a file called fred\bob in Eclipse but the file system will create a folder

	/proj/folder/fred

	with a file 

	bob

Core should be consistent with the file system.

NOTES:

JM (7/25/2001 11:36:56 AM)
	Please supply exact steps to recreate.
Comment 1 DJ Houghton CLA 2001-10-24 06:43:29 EDT
PRODUCT VERSION: 0.9


Comment 2 John Arthorne CLA 2001-11-05 11:19:31 EST
Current behaviour is that it fails, saying folder "fred" does not exist.  Core 
behaviour is working as designed.  Core interprets java.io.File.separatorChar as 
a path separator.

Moving PR to UI.  They could be slightly nicer to the user by checking this 
value as the user types.  They could either search for File.separatorChar, or 
call IWorkspace#validateName on the exact text entered in the box.  UI currently 
calls IWorkspace#validatePath, which splits the passed path into segments (in 
this case "fred" and "bob" get separated), then validates each name.
Comment 3 Tod Creasey CLA 2002-01-22 12:39:35 EST
Validation is now done using the path and files with a \ in thier name are now 
created in directories.