Bug 1315760 - kie-config-cli: "Auth failure" trying to work with repositories
kie-config-cli: "Auth failure" trying to work with repositories
Product: JBoss BPMS Platform 6
Classification: JBoss
Component: Business Central (Show other bugs)
Unspecified Unspecified
urgent Severity urgent
: ER2
: 6.3.0
Assigned To: manstis
Jan Hrcek
Depends On:
  Show dependency treegraph
Reported: 2016-03-08 09:22 EST by Jan Hrcek
Modified: 2016-03-30 03:21 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1315757
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jan Hrcek 2016-03-08 09:22:23 EST
+++ 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:

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 03:21:59 EDT
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.