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 46014

Summary: Open Project dialog absolutizes path
Product: projects Reporter: mslama <mslama>
Component: Generic Projects UIAssignee: Jesse Glick <jglick>
Severity: blocker CC: phrebejk
Priority: P2    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 46459    
Bug Blocks: 41535    

Description mslama 2004-07-12 09:53:53 UTC
See issue #45793 for more details.

When I have symbolic link in path eg.:
/home/mslama/local/ where 'local' is
symbolic link to /mnt/local/mslama. Absolute path
to is /mnt/local/mslama/
Problem is:
1.When I open given document using Favorites tab
C-S-3 action works fine. (Its path contains
symbolic link as you said.)
2.When I open the same document using Projects tab
C-S-3 action does NOT work. (Its path is
absolute.) I opened project using Open Project
dialog and I went through symbolic link in project
Its look like projects somehow absolutize path of
opened project (project files).
Comment 1 Jesse Glick 2004-07-12 21:55:01 UTC
Presumably a JFileChooser problem. I have an action item to make sure
it is filed and handled. I think it depends on the L&F - in particular
I believe the GTK chooser does not have this problem.
Comment 2 Jesse Glick 2004-07-21 21:52:56 UTC
See JDK bug #4906607. I believe I have found an (elaborate) workaround
which I will try to use in NB.
Comment 3 Jesse Glick 2004-07-22 19:39:25 UTC
I think this is P2 from a user perspective; there is no workaround and
it can make things quite uncomfortable. I filed #46459 for an API
method that can be used generally wherever a file chooser should not
canonicalize links.
Comment 4 Jesse Glick 2004-07-30 23:33:47 UTC
committed   * Up-To-Date  1.10       
committed   * Up-To-Date  1.21