Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-9168

Repository import for a single repo doesn't communicate clearly when an auth failure has occurred

    XMLWordPrintable

Details

    Description

      Problem Definition

      When the repository importer fails, a pop up is displayed to the user:

      This message does not contain the details of the problem, and an administrator has to be involved to check the log files where the message is clearly stating the problem.
      For example in case the repository fails to import due to invalid authentication, the following can be found in the atlassian-bitbucket.log file:

      ERROR [pool-5-thread-1] user1 @HHN5D5x665x29x0 py3vyn 192.179.156.1 "POST /rest/importer/latest/projects/<project_key>/import/repos HTTP/1.1" c.a.b.i.i.repository.RefSyncTask Failed to import repository: <project_key>/<repository_slug>[62]
      com.atlassian.bitbucket.scm.git.command.fetch.GitFetchAuthenticationException: Authentication failed for https://<myusername>@bitbucket.org/<source_username>/<repository_name>.git
      	at com.atlassian.stash.internal.scm.git.command.fetch.MirrorFetchCommandHandler$RemoteFetchExitHandler.evaluateStdErr(MirrorFetchCommandHandler.java:329) ~[na:na]
      	at com.atlassian.bitbucket.scm.git.command.GitCommandExitHandler.onError(GitCommandExitHandler.java:197) ~[na:na]
      	at com.atlassian.bitbucket.scm.DefaultCommandExitHandler.onExit(DefaultCommandExitHandler.java:31) ~[bitbucket-spi-4.9.1.jar:na]
      

      Suggested Solution

      Provide the cause of the failure for the repository importer directly in the pop up.

      Attachments

        Activity

          People

            khughes@atlassian.com Kristy
            ccurti Caterina Curti
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: