kwin opened a new issue, #795:
URL: https://github.com/apache/mina-sshd/issues/795

   ### Version
   
   2.12.0
   
   ### Bug description
   
   With SSHD 2.11.0 we used a test SSH server which worked fine with our JGit 
5.13.3 based client 
(https://github.com/apache/maven-scm/blob/master/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-jgit/src/test/java/org/apache/maven/scm/provider/git/jgit/command/checkout/JGitSshCheckOutCommandTckTest.java).
 The same client fails when using SSHD 2.12.0 or newer. I assume this is a 
regression of https://github.com/apache/mina-sshd/issues/429 but I don't know 
whether the client is to blame (JGit) or the server.
   
   ### Actual behavior
   
   I see the following exception when connecting via SSH from JGit:
   
   
   ```
   ...
   Caused by: org.apache.maven.scm.ScmException: JGit checkout failure!
        at 
org.apache.maven.scm.provider.git.jgit.command.checkout.JGitCheckOutCommand.executeCheckOutCommand(JGitCheckOutCommand.java:212)
        at 
org.apache.maven.scm.command.checkout.AbstractCheckOutCommand.executeCommand(AbstractCheckOutCommand.java:78)
        at 
org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:52)
        ... 37 more
   Caused by: org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid 
remote: origin
        at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:224)
        at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:311)
        at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:182)
        at 
org.apache.maven.scm.provider.git.jgit.command.checkout.JGitCheckOutCommand.executeCheckOutCommand(JGitCheckOutCommand.java:138)
        ... 39 more
   Caused by: org.eclipse.jgit.errors.NoRemoteRepositoryException: 
ssh://localhost:50723/repository: not found.
        at 
org.eclipse.jgit.transport.BasePackConnection.noRepository(BasePackConnection.java:574)
        at 
org.eclipse.jgit.transport.BasePackConnection.readAdvertisedRefsImpl(BasePackConnection.java:213)
        at 
org.eclipse.jgit.transport.BasePackConnection.readAdvertisedRefs(BasePackConnection.java:179)
        at 
org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:318)
        at 
org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:153)
        at 
org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:143)
        at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:95)
        at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1309)
        at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:216)
        ... 42 more
   Caused by: java.io.EOFException: Short read of block.
        at org.eclipse.jgit.util.IO.readFully(IO.java:203)
        at 
org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:316)
        at 
org.eclipse.jgit.transport.PacketLineIn.readString(PacketLineIn.java:180)
        at 
org.eclipse.jgit.transport.BasePackConnection.readLine(BasePackConnection.java:190)
        at 
org.eclipse.jgit.transport.BasePackConnection.readAdvertisedRefsImpl(BasePackConnection.java:211)
        ... 49 more
   ```
   
   ### Expected behavior
   
   The client should connect as before. I haven't set any environment variable 
GIT_PROTOCOL (neither to `version=2`  or any other value), so I would assume 
that v1 is being used as before.
   
   ### Relevant log output
   
   ```Shell
   
   ```
   
   ### Other information
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to