Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1304616

Summary: unable to clone git repository from github by ssh with ssh key+passphrase
Product: [Retired] JBoss BPMS Platform 6 Reporter: Hiroko Miura <hmiura>
Component: Business CentralAssignee: Alexandre Porcelli <porcelli>
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.2.0CC: alazarot, hmiura, kverlaen, manstis
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:12:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hiroko Miura 2016-02-04 08:07:39 UTC
Description of problem:
Customerwant to clone git repository from their github to business central over ssh.

According to the following document,

https://help.github.com/articles/generating-ssh-keys/

They configured ssh key with passphrase for his github account.
They then confirmed that git clone from this github to local file system works without inputting passphrase.

 e.g.

 $ ssh -T git
 $ git clone ssh://git/jboss/BPMSrepository.git

But when trying to clone it from this github on business central with above ssh url, it fails with the exception something like the following.

ERROR [org.guvnor.structure.backend.repositories.RepositoryServiceImpl] (http-localhost.localdomain/127.0.0.1:8080-5) Error during create repository: java.lang.RuntimeException: ssh://git:22: org.eclipse.jgit.transport.CredentialItem$StringTypeassphrase for /home/jboss/.ssh/id_rsa
  :
Caused by: java.lang.RuntimeException: org.eclipse.jgit.errors.UnsupportedCredentialItem: ssh://git:22: org.eclipse.jgit.transport.CredentialItem$StringTypeassphrase for /home/jboss/.ssh/id_rsa

Version-Release number of selected component (if applicable):
BxMS 6.2.0

How reproducible:
see below

Steps to Reproduce:
1. According to the following document,

https://help.github.com/articles/generating-ssh-keys/
  
   setup ssh key with passphrase and upload public key to your gut hub account

2. login business central and then create repository via 
    Authoring -> Administration -> Repositories -> clone repository 
    with the url something like

    ssh://git/jboss/BPMSrepository.git



Actual results:
cloning repository fails as passphrase is required

Expected results:
closing repository succeed

Additional info:

Comment 4 Alexandre Porcelli 2016-03-07 13:09:22 UTC
Not: Passphrase will be supported on 6.3:

https://github.com/uberfire/uberfire/commit/d3be632fda6bfe77fb8570cd163ce77ffcae2366