[RTFACT-15697] Resolving from a Virtual repository with a local repo with exclude patterns will fail at the local repository Created: 19/Jan/18  Updated: 06/Aug/19

Status: Open
Project: Artifactory Binary Repository
Component/s: None
Affects Version/s: 5.8.0, 5.9.0, 6.0.0, 6.3.3, 6.5.2
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Matthew Wang Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None

Issue Links:
is duplicated by RTFACT-18410 Virtual repository stops serving arti... Resolved
is related to RTFACT-17727 Resolving from a Virtual repository w... Resolved
RTFACT-18898 Docker Virtual mishandles patterns ex... Sub-task Resolved Bar Haim  


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)

Generated at Tue Sep 22 17:58:04 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.