Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-18610

Create Virtual REST API allows to include duplicate repository name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: 4 - Normal
    • Resolution: Unresolved
    • Affects Version/s: 6.8.3
    • Fix Version/s: None
    • Component/s: REST API
    • Labels:
    • Severity:
      Medium

      Description

      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:

      1. Create a virtual repository name my-virtual-repo
      2. Create a local repository name my-local-repo
      3. 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 

       

        Attachments

          Activity

            People

            Assignee:
            shaharz Shahar Zer-Aviv
            Reporter:
            Disham Disha Meswania
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:

                Sync Status

                Connection: RTFACT Sync
                RTMID-18610 -
                SYNCHRONIZED
                • Last Sync Date: