Hi,
When using REST API to create repository, if a virtual repository is created with included repositories as duplicate names, it allows and shows the same in UI.
Steps to reproduce:
- Create a virtual repository name my-virtual-repo
- Create a local repository name my-local-repo
- Use the following REST API :
curl -X POST -H "Content-Type: application/json" -uadmin http://localhost:8081/artifactory/api/repositories/my-virtual-repo -d '{"repositories": ["my-local-repo", "my-local-repo"]}'
As Disha mentioned you will see the local repository twice