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 42529

Summary: GTK's file chooser does not normalize filenames
Product: projects Reporter: Antonin Nebuzelsky <anebuzelsky>
Component: Generic InfrastructureAssignee: Jesse Glick <jglick>
Status: CLOSED FIXED    
Severity: blocker CC: jglick
Priority: P3 Keywords: GTK, L&F
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41535    
Attachments: IAE

Description Antonin Nebuzelsky 2004-04-27 17:08:26 UTC
Double-clicking .. in the file chooser dialog
results in "IllegalArgumentException: Parameter
file was not normalized." thrown out of
org.openide.filesystems.FileUtil.fromFile(). See
the attachment for details.
Comment 1 Antonin Nebuzelsky 2004-04-27 17:09:20 UTC
Created attachment 14589 [details]
IAE
Comment 2 Antonin Nebuzelsky 2004-04-27 17:10:29 UTC
This happens when you run the IDE with GTK L&F (-J-DuseGtk=true).
Comment 3 _ tboudreau 2004-04-27 17:57:10 UTC
I've seen this before, but assumed it was just a bug waiting to be fixed in stavbicka.  Jesse, 
can you confirm this is not normal file chooser behavior?

If so, this should probably be a P1 bug for the JDK team, or we should normalize it 
ourselves.  Jesse, opinion?
Comment 4 Jesse Glick 2004-04-27 22:50:24 UTC
I presume it's a bug in the project chooser accessory. It's probably a
feature that the file chooser does not canonicalize filenames -
usually better for symlink users.
Comment 5 _ tboudreau 2004-05-05 14:06:53 UTC
Okay.  If we should file a JDK bug on this we need to do that very soon.  Let me know.
Comment 6 Jesse Glick 2004-05-05 19:06:25 UTC
To the contrary, the GTK behavior is probably fine for us; it is BT
#4906607 (that other Unix file choosers *do* canonicalize symlinks)
that we need to worry about.
Comment 7 Jesse Glick 2004-05-06 02:17:40 UTC
I'll take this, I think I have a patch for it.
Comment 8 Jesse Glick 2004-05-06 04:11:39 UTC
committed   * Up-To-Date  1.6        
projects/projectui/src/org/netbeans/modules/project/ui/ProjectChooserAccessory.java
committed   * Up-To-Date  1.3        
projects/projectui/src/org/netbeans/modules/project/ui/actions/OpenProject.java
Comment 9 Antonin Nebuzelsky 2004-05-12 15:45:13 UTC
Verified in build 200405101820.