Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353765

Summary: [LinkedResources] Funny UI behavior when accidentally trying to create a linked resource folder on invalid name
Product: [Eclipse Project] Platform Reporter: Martin Oberhuber <mober.at+eclipse>
Component: IDEAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED DUPLICATE QA Contact: Serge Beauchamp <serge>
Severity: normal    
Priority: P3 CC: daniel_megert, Szymon.Brandys
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Martin Oberhuber CLA 2011-08-03 09:49:40 EDT
Build ID: Eclipse 3.7 Indigo on Windows 7

Steps to Reproduce:
1. Create an empty project "Foo"
2. File > New > Folder
3. Erroneously type "X:\" in the "Folder Name" box --> observe error message
4. Press the "Advanced>>" button 3 times
5. Clear the Folder name box and press the "Advanced>" button

--> The advanced section is shown 3 times, dialog becomes unusable :)

Also when Copying "X:\" into the clipboard and pasting that into the "Folder Name" box, an ugly dialog popup is shown and an error is logged:

java.lang.IllegalArgumentException: Path must include project and resource name: /sample
	at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
	at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:2163)
	at org.eclipse.core.internal.resources.Container.getFolder(Container.java:222)
	at org.eclipse.ui.dialogs.WizardNewFolderMainPage.createFolderHandle(WizardNewFolderMainPage.java:358)
Comment 1 Dani Megert CLA 2013-02-15 05:40:51 EST

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