Bug 1315757 - [GSS](6.2.z) kie-config-cli: "Auth failure" trying to work with repositories
[GSS](6.2.z) kie-config-cli: "Auth failure" trying to work with repositories
Status: VERIFIED
Product: JBoss BPMS Platform 6
Classification: JBoss
Component: Business Central (Show other bugs)
6.2.0
Unspecified Unspecified
urgent Severity urgent
: CR2
: 6.2.2
Assigned To: manstis
Jan Hrcek
: Regression
Depends On:
Blocks: 1309326
  Show dependency treegraph
 
Reported: 2016-03-08 09:20 EST by Jan Hrcek
Modified: 2016-03-21 07:02 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1315760 (view as bug list)
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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:20:11 EST
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 4 Jan Hrcek 2016-03-21 07:02:44 EDT
Ok, kie-config-cli.sh is working fine as before. Verified with BPM Suite 6.2.2 CR2

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