-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Low
-
None
-
Affects Version/s: 10.0.0, 10.2.0
-
Component/s: Repository - Import
-
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
- Navigate to a project
- Click Import repository
- Select Git and import the repository
- 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.
- is duplicated by
-
BSERV-20319 Repository import feature hangs after reaching 100% during importing process.
-
- Short Term Backlog
-