Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366762

Summary: Clone repository wizard fails with username that has @ character (email as username)
Product: [Technology] EGit Reporter: Lucas Panjer <lucas.panjer>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3    
Version: 1.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Lucas Panjer CLA 2011-12-14 17:18:09 EST
Trying to clone a repository over SSH with an email address as username using SSH key for authentication.

h2. Using name%40example.com@example.com produces:

EGit 1.1.0 Release
ssh://name%40example.com@example.com/repository.git: Auth fail
Auth fail

EGit 1.2.0.201112180832 Nightly
ssh://name%40exmaple.com@example.com/repository.git: session is down
session is down


h2. Using name@example.com@example.com produces:

EGit 1.1.0 Release & EGit 1.2.0.201112180832 Nightly
ssh://name@example.com@example.com/repository.git: java.net.UnknownHostException: example.com@example.com
java.net.UnknownHostException: example.com@example.com


h2. Notes:

If I use cgit on the command line:
* using cgit 1.7.1 only the unencoded form works.
* using cgit 1.7.5 either form works.

h2. Expectations

cgit recognizes that the last @ character delimits the beginning of the hostname. I expect EGit/JGit to function the same way.