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 222757 - <user>@<host> account is added to the host list if a user opens a local directory containing full remote projects
Summary: <user>@<host> account is added to the host list if a user opens a local direc...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.3
Hardware: PC All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-26 13:20 UTC by Alexander Pepin
Modified: 2012-12-01 02:55 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 Alexander Pepin 2012-11-26 13:20:09 UTC
When I tried to open a local file from the local project folder using Favoites I noticed that <my_login>@<my_host> account was added to the host list automatically. I discovered that that happens when I opened SolStudioProjects directory obviosly containing a full remote project targeted to my host. Despite it's pretty harmless this behavior could be very confusing for some users.
Comment 1 Vladimir Kvashin 2012-11-28 16:42:15 UTC
I got projects from Alexander, with these projects I was able to reproduce the issue. If I'm trying to browse these projects' directory in file chooser, everything is ok. But when I expand parent folder in favorites, this leads to  reading configurations.xml !!! 
(which in turn adds host to the list, which is the known fact)

Here is the stack


"ErrorAnnotator worker"
org.netbeans.modules.cnd.makeproject.configurations.ConfigurationXMLReader.read(ConfigurationXMLReader.java:102)
org.netbeans.modules.cnd.makeproject.api.configurations.ConfigurationDescriptorProvider.getConfigurationDescriptor(ConfigurationDescriptorProvider.java:166)
org.netbeans.modules.cnd.makeproject.MakeSources.initSources(MakeSources.java:178)
org.netbeans.modules.cnd.makeproject.MakeSources.getSourceGroups(MakeSources.java:110)
org.netbeans.modules.cnd.makeproject.MakeProject$CPPImpl.findClassPath(MakeProject.java:1771)
org.netbeans.modules.csl.core.ProjectClassPathProvider.findClassPath(ProjectClassPathProvider.java:70)
org.netbeans.api.java.classpath.ClassPath.getClassPath(ClassPath.java:628)
org.netbeans.modules.parsing.impl.indexing.errors.Utilities.getSourceClassPathFor(Utilities.java:66)
org.netbeans.modules.parsing.impl.indexing.errors.ErrorAnnotator$1.run(ErrorAnnotator.java:315)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2043)
Comment 2 Vladimir Kvashin 2012-11-30 18:41:54 UTC
fixed in cnd-main
http://hg.netbeans.org/cnd-main/rev/ab3216f5a372
Comment 3 Quality Engineering 2012-12-01 02:55:12 UTC
Integrated into 'main-golden', will be available in build *201212010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ab3216f5a372
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #222757 - <user>@<host> account is added to the host list if a user opens a local directory containing full remote projects