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.
Created attachment 144722 [details] Test project Steps to reproduce: - unzip the attached project on remote host - setup this host in IDE, set "password"m not "ssh key" authorization - open the project in full remote mode First time IDE asks password, enter it. But IDE asks for password again. Cancel all subsequent password requests - IDE asks password again or again. If you enter password many times, it still asks again endlessly.
Investigation shows that 1) IDE interprets file name like "/home/vk/testcode/iz_241326/CppApplication_9/C:\Users\alex\AppData\Local\Temp\parfait2302421379361171776.o" incorrectly (it glues user id to it) 2) upon any exception thrown from sftp, sftp support calls SftpChannel.quit(); this was introduced by Andrew in 91a412c0656b, with comment "Do not return 'broken' Sftp channel to a spare pool. This prevents infinite 4: errors" 3) after that an attempt of getting sftp channel leads to password request, see the stack below org.netbeans.modules.nativeexecution.support.RemoteUserInfo.promptPassword(RemoteUserInfo.java:108) org.netbeans.modules.nativeexecution.support.RemoteUserInfo.promptKeyboardInteractive(RemoteUserInfo.java:199) com.jcraft.jsch.UserAuthKeyboardInteractive.start(UserAuthKeyboardInteractive.java:141) com.jcraft.jsch.Session.connect(Session.java:442) org.netbeans.modules.nativeexecution.jsch.JSchChannelsSupport.startNewSession(JSchChannelsSupport.java:250) org.netbeans.modules.nativeexecution.jsch.JSchChannelsSupport.acquireChannel(JSchChannelsSupport.java:146) org.netbeans.modules.nativeexecution.api.util.ConnectionManager$ConnectionManagerAccessorImpl.openAndAcquireChannel(ConnectionManager.java:558) org.netbeans.modules.nativeexecution.api.util.SftpSupport.getChannel(SftpSupport.java:199) org.netbeans.modules.nativeexecution.api.util.SftpSupport.access$400(SftpSupport.java:87) org.netbeans.modules.nativeexecution.api.util.SftpSupport$Downloader.work(SftpSupport.java:510) org.netbeans.modules.nativeexecution.api.util.SftpSupport$Downloader.call(SftpSupport.java:460) org.netbeans.modules.nativeexecution.api.util.SftpSupport$Downloader.call(SftpSupport.java:439) java.util.concurrent.FutureTask.run(FutureTask.java:262) org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423) org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
fixed: http://hg.netbeans.org/cnd-main/rev/18e26bd0d110
Integrated into 'main-silver', will be available in build *201402080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/18e26bd0d110 User: Vladimir Kvashin <vkvashin@netbeans.org> Log: fixed #241326 - IDE endlessly shows password dialog