Remote URL change from '%40' to '@' during authentication (Character Encoding)

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 1.8.3
    • Component/s: None
    • Severity 3 - Minor

      Summary

      Remote URL change from '%40' to '@' during authentication due to character encoding.

      Eg.
      The actual Source Path is http://user1%40user.com@<IP Address>/path/to/repo.git
      During authentication, SourceTree change to http://user1@user.com@<IP address> and prompts error fatal: could not read Password for 'http://user1@user.com@1<IP Address>': Invalid argument

      Steps to Reproduce

      1. Have an account username with '@'. eg. user1@user.com
      2. Clone a private repository with the URL : http://<Username>@<IP Address>/path/to/repo.git

      Expected Results

      Error:
      fatal: could not read Password for 'http://<Username with '@'>@<IP Address>': Invalid argument

      Actual Results

      No Error and the URL will be http://<Username with '%40'>@<IP Address>

      Workaround

      Use the below URL to clone/pull/push the repository
      https://username:password@<IP Address>/path/to/repo.git

        1. Authentication.PNG
          9 kB
          Ronald C.

            Assignee:
            Unassigned
            Reporter:
            Ronald C.
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: