Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] NPE aufter upgrade while pushing to "known" host via ssh

Thanks Matthias,
so should I crate a bug to update the jsch to 0.1.51 in jgit (as soon as it will be available)?
Kind regards,
Andrey Loskutov
Gesendet: Freitag, 07. März 2014 um 10:37 Uhr
Von: "Matthias Sohn" <matthias.sohn@xxxxxxxxx>
An: "Andrey Loskutov" <loskutov@xxxxxx>
Cc: "JGit Developers list" <jgit-dev@xxxxxxxxxxx>
Betreff: Re: [jgit-dev] NPE aufter upgrade while pushing to "known" host via ssh
On Fri, Mar 7, 2014 at 9:09 AM, Andrey Loskutov <loskutov@xxxxxx> wrote:

I've upgraded jgit/egit to latest 3.3.0 (from 3.1.0) and reproducibly observed NPE while trying to push to the remote via ssh:

java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US

Fri Mar 07 08:41:29 CET 2014
An exception occurred during push on URI ssh://git@xxx:7999/tool/eclipse-plugins-src.git: null

        at com.jcraft.jsch.Session.checkHost(
        at com.jcraft.jsch.Session.connect(
        at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(
        at org.eclipse.jgit.transport.SshTransport.getSession(
        at org.eclipse.jgit.transport.TransportGitSsh$SshPushConnection.<init>(
        at org.eclipse.jgit.transport.TransportGitSsh.openPush(
        at org.eclipse.jgit.transport.PushProcess.execute(
        at org.eclipse.jgit.transport.Transport.push(
        at org.eclipse.egit.ui.internal.push.PushOperationUI.execute(
        at org.eclipse.egit.ui.internal.push.PushOperationUI$

After removing the affected remote host from "known hosts" ssh settings in Eclipse, on next push attempt egit correctly asked me if I can trust the now "unknown" host and after confirmation the push was OK.

Is it expected to see such behavior on upgrade or should I file a bug?
looks like a bug in jsch 0.1.50, see
but 0.1.51 isn't released yet.

Back to the top