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

Resolving from a Virtual repository with a local repo with exclude patterns will fail at the local repository


    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 5.8.0, 5.9.0, 6.0.0, 6.3.3, 6.5.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:


      Currently, if you have an exclude pattern for an image/artifact in a local repo, and trying to pull from a virtual that aggregates the local repo, trying to resolve the artifact from the virtual will fail with a 404 due to the exclude pattern in the local repository. It will not continue to try resolving from other repositories aggregated in the virtual. To reproduce:
      -create local docker repository, deploy busybox image to it
      -create remote docker repository pointing to docker.io, and cache busybox
      -add an exclude pattern for the local docker repo (**/**) so that pulling buxybox will fail
      -create a virtual docker repository, aggregating the local and remote
      -delete any local busybox layers with docker rmi -f docker rmi $(docker images -q)
      -try pulling busybox from the virtual, and see that the pull fails at the local repository due to the exclude pattern, and doesn't continue searching through the remote:

      docker pull mill.jfrog.team:12197/busybox

      Using default tag: latest

      latest: Pulling from busybox

      90e01955edcd: Pulling fs layer

      error pulling image configuration: unknown blob

      2018-01-19 08:55:11,052 [http-nio-8081-exec-11] [ERROR] (o.j.r.d.v.r.h.DockerV2LocalRepoHandler:532) - Error calculating manifest digest: 'Unauthorized: The repository 'docker-local' rejected the artifact 'docker-local:nginx/latest/manifest.json' due to its include/exclude pattern settings.'

      -A request to a virtual repository should not stop after an exclude pattern rejects the request, and the request should search through other aggregated repositories. (or there should be an option to enable this behavior)


          Issue Links



              • Assignee:
                mattheww Matthew Wang
              • Votes:
                1 Vote for this issue
                2 Start watching this issue


                • Created: