Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Trying to use git-remote-gcrypt / remote repository URL mangling

On Tue, Nov 20, 2018 at 8:30 PM Lehner Georg <jorge-eclipse@xxxxxxxxxxxxxx> wrote:
Hello,

I have tried to use EGit (via GitEye and via stock Eclipse) to work with
a repository with an encrypted remote.

See: git-remote-gcrypt: https://github.com/spwhitton/git-remote-gcrypt
for information on this.

The remote has the following URL:

  gcrypt::nrf51xxx@xxxxxxxxxxxxxxxxxx:git/repo1

Access to the repository fails immediately and in the logs I find:

   gcrypt@xxxxxxxxxxxxxxxxxx:git/repo1: Auth fail

So it seems, that

a) the URL gets mangled in a way, that EGit thinks, the user name is
gcrypt - when it should be nrf51xxx.

b) the gcrypt:: transport is not handled by EGit
    See: https://git-scm.com/docs/git-remote-helpers

- - -
Can this be fixed easily? (get the URL right internally)

Are git-remote-helpers supported?

Best Regards,

   Georg Lehner

P.S.: The full stacktrace of this particular log entry. Just tell me if
you want more.

eclipse.buildId=unknown
java.version=1.8.0_171
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64 -data
@user.home/.giteye

org.eclipse.egit.ui
Error
Thu Nov 15 22:36:22 CET 2018
gcrypt@xxxxxxxxxxxxxxxxxx:git/repo1: Auth fail

org.eclipse.core.runtime.CoreException:
gcrypt@xxxxxxxxxxxxxxxxxx:git/repo1: Auth fail
        at
org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:111)
        at
org.eclipse.egit.ui.internal.fetch.FetchOperationUI$1.performJob(FetchOperationUI.java:134)
        at
org.eclipse.egit.ui.internal.jobs.RepositoryJob.run(RepositoryJob.java:57)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Caused by: org.eclipse.jgit.api.errors.TransportException:
gcrypt@xxxxxxxxxxxxxxxxxx:git/repo1: Auth fail
        at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:248)
        at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:132)
        at
org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:108)
        ... 3 more
Caused by: org.eclipse.jgit.errors.TransportException:
gcrypt@xxxxxxxxxxxxxxxxxx:git/repo1: Auth fail
        at
org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:172)
        at
org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:140)
        at
org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:280)
        at
org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:170)
        at
org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:137)
        at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:123)
        at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1269)
        at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:237)
        ... 5 more
Caused by: com.jcraft.jsch.JSchException: Auth fail
        at com.jcraft.jsch.Session.connect(Session.java:519)
        at
org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:126)
        ... 12 more

JGit and EGit do not (yet) support remote helpers.
Maybe you are interested to contribute an implementation ?
Then follow the contributor guide.

-Matthias

Back to the top