Bug 1315760 - kie-config-cli: "Auth failure" trying to work with repositories
Summary: kie-config-cli: "Auth failure" trying to work with repositories
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ER2
: 6.3.0
Assignee: manstis
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-08 14:22 UTC by Jan Hrcek
Modified: 2020-03-27 20:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1315757
Environment:
Last Closed: 2020-03-27 20:12:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Hrcek 2016-03-08 14:22:23 UTC
+++ This bug was initially created as a clone of Bug #1315757 +++

Description of problem:
This is a regression most likely caused by fix to bug #1299870

The problem is that when trying to clone repository via kie-config-cli.sh
I'm getting an exception " Auth fail" when trying to authenticate / clone repository from ssh based url
full stacktrace at the bottom

Version-Release number of selected component (if applicable):
BPM Suite 6.2.2 patch

How reproducible:
Always

Steps to Reproduce:
1. deploy BPM Suite for EAP
2. unpack bxms.supplementary.tools.latest.zip and navigate to jboss-brms-bpmsuite-6.2-supplementary-tools/kie-config-cli-dist

3. run kie-config-cli.sh, accept default repo url and try to authenticate your user (one of the users declared in EAP for business central)

Actual results:
Exception in (see below) displayed - impossible to "login" to kie-config-cli.sh

Expected results:
It should be possible to authenticate the user.

Additional info:

Exception in thread "main" java.lang.RuntimeException: org.eclipse.jgit.api.errors.TransportException: ssh://testadmin@localhost:8001/system: Auth fail
	at org.uberfire.java.nio.fs.jgit.util.JGitUtil.cloneRepository(JGitUtil.java:250)
	at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.newFileSystem(JGitFileSystemProvider.java:688)
	at org.uberfire.java.nio.file.FileSystems.newFileSystem(FileSystems.java:117)
	at org.uberfire.java.nio.file.FileSystems.newFileSystem(FileSystems.java:83)
	at org.uberfire.io.impl.AbstractIOService.newFileSystem(AbstractIOService.java:244)
	at org.kie.config.cli.command.impl.CloneGitRepositoryCliCommand.execute(CloneGitRepositoryCliCommand.java:85)
	at org.kie.config.cli.CmdMain.main(CmdMain.java:85)
Caused by: org.eclipse.jgit.api.errors.TransportException: ssh://testadmin@localhost:8001/system: Auth fail
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
	at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:193)
	at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:133)
	at org.uberfire.java.nio.fs.jgit.util.JGitUtil.cloneRepository(JGitUtil.java:229)
	... 6 more
Caused by: org.eclipse.jgit.errors.TransportException: ssh://testadmin@localhost:8001/system: Auth fail
	at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:159)
	at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:136)
	at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:262)
	at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:161)
	at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
	at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
	at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
	... 9 more
Caused by: com.jcraft.jsch.JSchException: Auth fail
	at com.jcraft.jsch.Session.connect(Session.java:512)
	at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
	... 16 more

Comment 3 Jan Hrcek 2016-03-30 07:21:59 UTC
Ok, working fine again. Verified with BPM Suite 6.2.0 ER2


Note You need to log in before you can comment on or make changes to this bug.