Uploaded image for project: 'Skara'
  1. Skara
  2. SKARA-462

Improve error message when an authentication failure occurs

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cli
    • Labels:
      None

      Description

      Currently when no credentials have been configured errors like:

      > remote: Invalid username or password.
      > fatal: Authentication failed for 'https://github.com/JohnDoe/valhalla.git/'
      at org.openjdk.skara.vcs/org.openjdk.skara.vcs.git.GitRepository.await(GitRepository.java:94)
      at org.openjdk.skara.vcs/org.openjdk.skara.vcs.git.GitRepository.push(GitRepository.java:494)
      at org.openjdk.skara.vcs/org.openjdk.skara.vcs.Repository.push(Repository.java:139)
      at org.openjdk.skara.cli/org.openjdk.skara.cli.GitSync.sync(GitSync.java:247)
      at org.openjdk.skara.cli/org.openjdk.skara.cli.GitSync.main(GitSync.java:313)
      at org.openjdk.skara.cli/org.openjdk.skara.cli.GitSkara.main(GitSkara.java:198)

      can occur.

      In that case the solution is to generate and `git token store https://github.com` a PAT from GitHub.

      The current error message could be improved by pointing at git token store, or the Skara wiki page containing the documentation about this: https://wiki.openjdk.java.net/display/SKARA/CLI+Tools#CLITools-CredentialManager.1

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jvernee Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: