Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 71043 - Do not resolve symbolic links in path
Do not resolve symbolic links in path
Product: installer
Classification: Unclassified
Component: Code
All All
: P2 (vote)
: 7.4
Assigned To: Libor Fischmeistr
Depends on:
  Show dependency treegraph
Reported: 2006-01-05 14:07 UTC by mslama
Modified: 2013-04-04 14:31 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description mslama 2006-01-05 14:07:59 UTC
When user enters path with symbolic link on UNIX anywhere in installer GUI
symbolic links are resolved (File.getAbsolutePath()). Solution is not to use
getAbsolutePath or getCanonicalPath. Instead we could try
to resolve relative path and remove ../ segments from path.

Eg. /home/user/../user should be resolved to /home/user, ../../user should be
resolved to /home/user.
Comment 1 Jiri Rechtacek 2012-10-07 12:59:08 UTC
Assigned to new owner.
Comment 2 Libor Fischmeistr 2013-02-05 07:45:34 UTC
The useful solution could be done using java.nio.file.Path - normalize()
Comment 3 Libor Fischmeistr 2013-03-28 14:02:48 UTC
First attempt in
Comment 4 Libor Fischmeistr 2013-04-04 14:31:30 UTC
Fixed in changeset:

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo