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 - Open Project dialog absolutizes path
Summary: Open Project dialog absolutizes path
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on: 46459
Blocks: 41535
  Show dependency tree
 
Reported: 2004-07-12 09:53 UTC by mslama
Modified: 2004-08-13 12:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/a.java where 'local' is
symbolic link to /mnt/local/mslama. Absolute path
to a.java is /mnt/local/mslama/a.java.
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
chooser.
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       
projects/projectui/nbproject/project.xml
committed   * Up-To-Date  1.21       
projects/projectui/src/org/netbeans/modules/project/ui/ProjectChooserAccessory.java