Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359715

Summary: CoreException is thrown when cancelling login
Product: [Technology] EGit Reporter: Marc-AndrĂ© Laperle <malaperle>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: matthias.sohn
Version: 1.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Marc-André Laperle CLA 2011-10-03 11:11:30 EDT
EGit    1.2.0.201109260137

1. Fetch from a ssh repository
2. LoginDialog pops up, click cancel a couple of times.

org.eclipse.core.runtime.CoreException: ssh://mlaperle@git.eclipse.org/gitroot/cdt/org.eclipse.cdt.git: Auth cancel
	at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:102)
	at org.eclipse.egit.ui.internal.fetch.FetchOperationUI$1.run(FetchOperationUI.java:117)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.jgit.errors.TransportException: ssh://mlaperle@git.eclipse.org/gitroot/cdt/org.eclipse.cdt.git: Auth cancel
	at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:138)
	at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
	at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248)
	at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147)
	at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:127)
	at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:113)
	at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1062)
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:136)
	at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:128)
	at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:99)
	... 2 more
Caused by: com.jcraft.jsch.JSchException: Auth cancel
	at com.jcraft.jsch.Session.connect(Session.java:451)
	at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:128)
	... 11 more
Comment 1 Matthias Sohn CLA 2014-03-17 06:08:31 EDT
this is similar to bug 337206, we should cancel the fetch operation if the user cancels the logon dialog