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 - GTK's file chooser does not normalize filenames
Summary: GTK's file chooser does not normalize filenames
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: GTK, L&F
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-04-27 17:08 UTC by Antonin Nebuzelsky
Modified: 2006-03-24 09:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IAE (4.83 KB, text/plain)
2004-04-27 17:09 UTC, Antonin Nebuzelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
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.