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 241326 - IDE endlessly shows password dialog
Summary: IDE endlessly shows password dialog
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-03 11:52 UTC by Vladimir Kvashin
Modified: 2014-02-08 04:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test project (31.53 KB, application/zip)
2014-02-03 11:52 UTC, Vladimir Kvashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2014-02-03 11:52:04 UTC
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.
Comment 1 Vladimir Kvashin 2014-02-07 07:37:50 UTC
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)
Comment 2 Vladimir Kvashin 2014-02-07 09:31:42 UTC
fixed:
http://hg.netbeans.org/cnd-main/rev/18e26bd0d110
Comment 3 Quality Engineering 2014-02-08 04:29:07 UTC
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