Bug 2473 - [UI] New File/Folder wizards don't filter '\' character (1GF80YL)
Summary: [UI] New File/Folder wizards don't filter '\' character (1GF80YL)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Ryan Cooper CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:37 EDT by Kevin Haaland CLA
Modified: 2002-01-28 10:23 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Haaland CLA 2001-10-10 22:37:04 EDT
When using the new file/folder wizard, you can enter a name with a back slash.

Problems with new file wizard:
1) entering 'abc\' for a filename and clicking finish will not create the file and give an error
2) entering 'abc\xyz' for a filename and clicking finish will create the file with no errors;
	on the file system it actually creates a file 'xyz' in folder	'abc' but will display 'abc\xyz'
	in the navigator); doing a refresh from local updates the navigator.
3) entering 'abc\' or 'abc\xyz' in linux will create the file and not display errors - this is legal in linux but we
	should filter it out since resources may be shared with win32 users.


Problems with new folder wizard:
1) entering 'abc\' for a folder name will create a folder 'abc' on the system but display 'abc\' in the 
navigator, doing a refresh from local updates the navigator
2) entering 'abc\xyz' creates subfolder 'xyz' within folder 'abc' on the system but displays 'abc\xyz'
3) entering 'abc\' or 'abc\xyz' in linux creates the folder without any errors - this is legal in linux but we
	should filter it out since folders may be shared with win32 users.


NOTES:
JEL (12/06/2001 2:59:30 PM)
	All of the new project wizards & new java resource wizards filter out the '\'

NE (6/15/01 1:20:42 PM)
	Readme doc:
99.1.1 New File and New Folder wizards accept '\' in name

When creating a new file or folder, it allows the backslash ('\') character in the name.  It should not.
On Windows, this can make the workspace inconistent with the file system.  A Refresh Local on the project will repair the inconsistency.
Comment 1 DJ Houghton CLA 2001-10-29 18:30:22 EST
PRODUCT VERSION:
122

Comment 2 Simon Arsenault CLA 2002-01-25 17:37:01 EST
Filter out the "\" character (look at what is done in the new project wizard to 
do this).
Comment 3 Simon Arsenault CLA 2002-01-28 10:23:22 EST
The validation method now calls Core API to test use of correct characters in 
file and folder names, just as the the new project wizard page does.

Fix in build > 2002-01-28