This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 21993

Summary: Unable to create a new folder in a directory that contains a space
Product: platform Reporter: John Baker <jbaker>
Component: -- Other --Assignee: issues@platform <issues>
Status: CLOSED WONTFIX    
Severity: blocker Keywords: SPACE_IN_PATH
Priority: P2    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

Description John Baker 2002-03-30 03:35:08 UTC
Using Orion 020329 kit, JDK 1.4.0, Windows 2000

To reproduce:

1) View the Explorer
2) Mount a filesystem

The "New Wizard - Local Directory" dialog opens by viewing 
the "My Documents" folder.

3) Try to create a new folder in "My Documents" by
clicking the new folder icon 

No new folder is created, nothing happens.
If a subdirectory of "My Documents," which doesn't
have a space in its name, is opened and the new folder
icon is clicked then a new folder can be created.
Comment 1 John Baker 2002-03-30 03:42:51 UTC
Added SPACE_IN_PATH keyword

More info...

On my PC, the "My Documents" directory contains
the directories, "My eBooks" and "My Pictures."

A new folder can be created in "My eBooks" but
not "My Pictures."

So, it appears that if the 2nd word of the directory
name begins with a capital letter than a new directory
cannot be created.
Comment 2 _ ttran 2002-03-30 23:08:11 UTC
I didn't try it myself, but from what you described I understand that
you are trying to create a new folder in the JFileChooser component. 
That component comes from Swing, we just use it.  If it fails to
create a new folder, then please file bug against JDK.  We cannot fix
it from outside Swing.
Comment 3 John Baker 2002-04-02 02:35:52 UTC
Bug was entered against JDK
http://swir.central/SSIR_Dept/BIN/printbug.cgi?4661130