Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 269195 - Remote can not create a file inside a cyclic link
Remote can not create a file inside a cyclic link
Product: cnd
Classification: Unclassified
Component: Remote
All All
: P3 (vote)
: 8.2
Assigned To: Vladimir Kvashin
Depends on:
  Show dependency treegraph
Reported: 2016-12-01 09:37 UTC by Vladimir Kvashin
Modified: 2016-12-08 13:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2016-12-01 09:37:12 UTC
While investigating stack overflow (issue 268918) I found that IDE can not create a file inside a cyclic link:

Caused: Cannot create file vkvashin@localhost:/home/vkvashin/tmp/cyclic_link/newfile2
        at org.netbeans.modules.remote.impl.fs.RemoteExceptions.createFileNotFoundException(
        at org.netbeans.modules.remote.impl.fs.RemoteDirectory.create(
        at org.netbeans.modules.remote.impl.fs.RemoteDirectory.createDataImpl(
        at org.netbeans.modules.remote.impl.fs.RemoteLinkBase.createDataImpl(
        at org.netbeans.modules.remote.impl.fs.RemoteLinkBase.createDataImpl(
        at org.netbeans.modules.remote.impl.fs.RemoteLinkBase.createDataImpl(
        at org.netbeans.modules.remote.impl.fs.RemoteFileObjectBase.createData(
        at org.netbeans.modules.remote.impl.fs.RemoteFileObject.createData(
        at org.netbeans.api.templates.CreateFromTemplateImpl.defaultCreate(
        at org.netbeans.api.templates.FileBuilder.createFromTemplate(
        at org.openide.loaders.FileEntry.createFromTemplate(
        at org.openide.loaders.MultiDataObject.handleCreateFromTemplate(
        at org.openide.loaders.DefaultDataObject.handleCreateFromTemplate(
        at org.openide.loaders.DataObject$
        at org.openide.loaders.DataObjectPool$
        at org.openide.filesystems.EventControl.runAtomicAction(
        at org.openide.filesystems.FileSystem.runAtomicAction(
        at org.openide.loaders.DataObjectPool.runAtomicAction(
        at org.openide.loaders.DataObject.invokeAtomicAction(
        at org.openide.loaders.DataObject.createFromTemplate(
        at org.openide.loaders.TemplateWizard$DefaultIterator.instantiate(
        at org.openide.loaders.TemplateWizard.handleInstantiate(
        at org.openide.loaders.TemplateWizard.instantiateNewObjects(
        at org.openide.loaders.TemplateWizardIterImpl.instantiate(
        at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(
        at org.openide.WizardDescriptor.callInstantiateOpen(
        at org.openide.WizardDescriptor.callInstantiate(
        at org.openide.WizardDescriptor.access$2300(
[catch] at org.openide.WizardDescriptor$Listener$2$
        at org.openide.util.RequestProcessor$
        at org.netbeans.modules.openide.util.GlobalLookup.execute(
        at org.openide.util.lookup.Lookups.executeWith(
        at org.openide.util.RequestProcessor$
Comment 1 Vladimir Kvashin 2016-12-01 10:41:35 UTC
This was done intentionally when fixing issue 258298.

But the issue that canRead() returned true for such directories, so IDE allowed to call new file creation, but it failed. 

This is now fixed on enum/r82, change set 262ecf3b03f4
Comment 2 Quality Engineering 2016-12-03 03:02:34 UTC
Integrated into 'main-silver', will be available in build *201612030001* on (upload may still be in progress)

User: Vladimir Kvashin <>
Log: Fix and test for #269195 - Remote can not create a file inside a cyclic link
(transplanted from 262ecf3b03f4b52bd9e4a534e4bcebc712a8cf23)
Comment 3 soldatov 2016-12-08 13:28:53 UTC
Verified in internal NetBeans 8,2 patch 1 build.

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