Repository import feature hangs while importing the same repository twice.

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      While importing the same repository twice in the project the import hangs and does not warn the project already has the repository.

      Steps to Reproduce

      1. Navigate to a project
      2. Click Import repository
      3. Select Git and import the repository
      4. Repeat the steps above to import the same repository again

      Expected Results

      Bitbucket cancels the second import and shows the following message:

      Actual Results

      Bitbucket tries to import the same repository again and the import process hangs

      The following message is found in the atlassian-bitbucket.log:

      2026-02-23 04:28:09,341 DEBUG [http-nio-7990-exec-7] user @HRK9BDx268x136x0 elk6h4 172.199.99.99 "POST /rest/importer/latest/projects/BIT/import/repos HTTP/1.1" c.a.s.i.r.DefaultRepositoryService Could not create repository Dg-test/DG-hello-world
      jakarta.validation.ConstraintViolationException: name: This repository URL is already taken.    
      at com.atlassian.bitbucket.util.ValidationUtils.validate(ValidationUtils.java:33)    at com.atlassian.stash.internal.repository.DefaultRepositoryService.createRepositoryInDatabase(DefaultRepositoryService.java:990) 

      Workaround

      Refresh the page. This goes back to the project page without importing the duplicate repository.

        1. image-2026-02-23-18-21-50-251.png
          23 kB
          Douglas Gnoato
        2. image-2026-02-23-18-23-52-322.png
          44 kB
          Douglas Gnoato

              Assignee:
              Unassigned
              Reporter:
              Douglas Gnoato
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: