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 251867 - Clone Remote Repository using SSH Erroneous Password Popup
Summary: Clone Remote Repository using SSH Erroneous Password Popup
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-15 18:57 UTC by soccer13player
Modified: 2015-07-17 16:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Picture of the password popup (40.26 KB, image/png)
2015-04-15 19:57 UTC, soccer13player
Details
Crtl-Break at the password popup (35.66 KB, text/plain)
2015-04-15 20:18 UTC, soccer13player
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soccer13player 2015-04-15 18:57:37 UTC
** Need to remove erroneous password popup windows.

The environment is as following:
Windows 7 PC with NetBeans 8.0.2 and Cygwin.
Remote bare repository residing on an AIX server.
.ssh key from local machine has been pushed to remote server

The activity:
When performing a git clone through NetBeans interface, I set the location, my username, set the radio button to Private/Public Key, location of id_rsa file, and press next.

I get a userid password popup and press cancel.  This repeats for a total of three times.

However, I still successfully get to step 2.  I select a branch and press next.  I then press finish,

I get a userid password popup again and press cancel.  This repeats for a total of three times.

Despite getting the password popup six times and pressing cancel each time, I succesfully get a clone of the remote repository.

***
I have tried a few changes to the first screen without succesfully avoiding the passowrd popup.

***
From a Cygwin terminal session, I am able to perform the git clone command without any password request appearing.
Comment 1 Ondrej Vrabec 2015-04-15 19:40:04 UTC
Please attach the IDE log when you click on cancel. And please make a screenshot of the popup, i am not sure what you're referring to.
Comment 2 soccer13player 2015-04-15 19:57:33 UTC
Created attachment 153220 [details]
Picture of the password popup

I have loaded up the image.  However, when I do a View -> IDE Log, nothing appears in the log when I hit cancel.
Comment 3 Ondrej Vrabec 2015-04-15 20:02:17 UTC
I don't recall such dialog, can you please generate a thread dump while it's open and attach it here?
http://wiki.netbeans.org/GenerateThreadDump
Comment 4 soccer13player 2015-04-15 20:18:48 UTC
Created attachment 153221 [details]
Crtl-Break at the password popup

I hope I performed the Ctrl-Break at the right time to get you what you need.
Comment 5 Ondrej Vrabec 2015-07-13 14:03:08 UTC
I think it's the order of the auth methods being called. We expect "publickey" to come before "keyboard-interactive,password". Could you take a look into HOME\.ssh\config file and let me know if there is (and what is the value) of "PreferredAuthentications" directive?
Comment 6 Ondrej Vrabec 2015-07-13 14:35:21 UTC
Fix: core-main #3ecf5e9c00a5
Changeset: 3ecf5e9c00a5
Message:   Set the order of preferred auth methods as we actually expect them.
Comment 7 soccer13player 2015-07-13 14:51:44 UTC
Hello,

My computer did not have a file .ssh\config.  I looked online for content information and created the following:

Host *
    PreferredAuthentications publickey,keyboard-interactive,password,hostbased

I put this file both in the Cygwin $HOME\.ssh and the Windows Users\uid\.ssh location.  Do I need to do something else?

I am still getting the password request popup.
Comment 8 Ondrej Vrabec 2015-07-13 14:56:29 UTC
Please try my fix again in a dev build when it gets into one and if it still happens please again attach a thread dump.
Comment 9 soccer13player 2015-07-13 15:07:01 UTC
I read your comments as if there was a configuration issue.  However, when I tried adding the configuration file, I still had the same issue.

If I understand correctly now, there is a code change that will resolve this issue.  

Two quesations:
1.  Will this code change resolve the issue even if I revert back to my original state that did not have the config files?

2.  Being my first bug report, will I get an automated notification message when this fix gets into the standard build?
Comment 10 Ondrej Vrabec 2015-07-13 15:15:16 UTC
(In reply to soccer13player from comment #9)
> I read your comments as if there was a configuration issue.  However, when I
> tried adding the configuration file, I still had the same issue.
> 
> If I understand correctly now, there is a code change that will resolve this
> issue.  
Honestly i am not absolutely sure what is the cause, i just hope my fix might help. But not sure, that's why i want you to try my fix.
> 
> Two quesations:
> 1.  Will this code change resolve the issue even if I revert back to my
> original state that did not have the config files?
Yes, if it helps it should work regardless whether you keep the config files or not. So just remove them.
> 
> 2.  Being my first bug report, will I get an automated notification message
> when this fix gets into the standard build?
A comment will come to this issue in few days with a link to download a development build.
Comment 11 soccer13player 2015-07-13 15:17:11 UTC
Whether your fix works or not, I appreciate that you are attempting address the issue.  Thank you.
Comment 12 Quality Engineering 2015-07-17 01:18:12 UTC
Integrated into 'main-silver', will be available in build *201507170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3ecf5e9c00a5
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #251867 - Clone Remote Repository using SSH Erroneous Password Popup
Set the order of preferred auth methods as we actually expect them.
Comment 13 soccer13player 2015-07-17 16:49:49 UTC
Tested nightly build.  The password popup no longer appears when it is unneeded. Yay!  Thanks!

Will I get a notification when this piece of code makes it to a release?

When is it expected to get into a release?
Comment 14 Ondrej Vrabec 2015-07-17 16:51:16 UTC
https://netbeans.org/community/releases/roadmap.html - NB 8.1 in October