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 247588 - In full remote IDE opens a file and its symbolic link in two different tabs
Summary: In full remote IDE opens a file and its symbolic link in two different tabs
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-30 09:48 UTC by Vladimir Kvashin
Modified: 2015-09-19 03:04 UTC (History)
0 users

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 Vladimir Kvashin 2014-09-30 09:48:23 UTC
I've noticed (on cafe project) that even if original file (not symlink) is open in editor, IDE opens symlink to this file in a new tab (instead of activating existent one).

The original file is 
cafe/unit/parse/common/inc/syntaxname.h

The symlink is 
cafe/group/core_fe/intel-S2/lnk/tempactual.h

Moreiver, we have a hyperlink problem there, which shhould be probably filed separately: if I click on a string_name declaration of syntax_name_component class (syntaxname.h:135), Im hyperlinked to the same line into symlink.
Comment 1 Vladimir Kvashin 2015-09-18 12:01:36 UTC
fixed by
http://hg.netbeans.org/cnd-main/rev/3ca9cbbf23d5

The fix introduced getting canonical file object in the EDT, which looks frightening. However, this is asked before opening the file => isFolder/isData for this file object is called first => it already resolved its canonical delegate => the latter has been already cached (as well as the entire chain) => no network operations will occur in EDT

One can switch this off for remote via -J-Dnb.cosredirector.remote=false
Comment 2 Quality Engineering 2015-09-19 03:04:46 UTC
Integrated into 'main-silver', will be available in build *201509190002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3ca9cbbf23d5
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #247588 - In full remote IDE opens a file and its symbolic link in two different tabs