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

Distribute docker image fails when same tag exist in other repo

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.10.0
    • Fix Version/s: 6.0.0
    • Labels:
      None
    • Sprint:
      Leap 30

      Description

      Repro Steps:
      1. create docker-local1 repo
      2. create docker-local2 repo
      3. push docker image to both repos
      4. preform distribute to bintray
      you will see the next error:

       One or more of the artifacts that were mapped to version registry/myimage/folder/latest by rule Docker are being mapped to the same path 'myimage/folder/latest/manifest.json'.  This version will not be distributed to Bintray to allow you to recover.
      

      the reason for error:

         private AqlApiItem buildSearchManifestsQuery(RepoPath path) {
              return create().filter(
                      and(
                              //repo().equal(path.getRepoKey()), <-- missing
                              path().matches(path.getPath()),
                              and(
                                      name().equal(MANIFEST_FILENAME),
                                      depth().lessEquals(10)
                              )
                      )
              );
          }
      

      not contain the repo key,

        Attachments

          Activity

            People

            • Assignee:
              uriahl Uriah Levy
              Reporter:
              Dudim Dudi Morad
              Assigned QA:
              Matan Katz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: