Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-49035

Git Repository encoding error using special Windows syntax for Machine+User@host:path

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major Major
    • git-plugin
    • None
    • Jenkins 2.46.2
      Git plugin 3.7.0

      Git SCM does not correctly encode the username if it is a local user to a Windows machine because it contains a "+".

      The job's SCM configuration page connects successfully with a username containing a "+", but the Git Polling Log uses the incorrectly encoded username.

      I have verified on the Windows logs that the sshd login was rejected because the username had a "%252b" instead of a "+".

      SSH credential is Globally scoped, does not have a paraphrase, and is using a private ssh-rsa key located on Jenkins master. The credential does NOT use the "MACHINE+user" format. It just has "uniqueUser". This same credential is used successfully to SSH into Linux slaves. The Master node Windows SSH server utilizes a common login "MACHINE+user", and validates "uniqueUser" based on a uniqueUser.pub key.

        1. Config.jpg
          Config.jpg
          145 kB
        2. PollingLog.jpg
          PollingLog.jpg
          270 kB

            Unassigned Unassigned
            rmills688 Ryan Mills
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: