[RTFACT-12396] Push image with already existing layers causes incorrect layout for the new image Created: 04/Sep/16  Updated: 13/Sep/16  Resolved: 06/Sep/16

Status: Resolved
Project: Artifactory Binary Repository
Component/s: Docker
Affects Version/s: 4.11.0, 4.11.1, 4.11.2, 4.12.0
Fix Version/s: 4.12.1

Type: Bug Priority: Blocker
Reporter: Matan Katz Assignee: Nadav Yogev
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Assigned QA: Matan Katz


Pushing image with already existing layers to virtual repository causes the layers to be copied to incorrect location.
From functional perspective, still able to pull the new image, but need to fix the layout.

To reproduce:
1. pull busybox
2. push it to virtual docker repository and tag it busybox:1
3. tag it again as busybox:2 and push it

Only the newly created layers, in this case the manifestjson will appear in the correct layout, i.e. /docker-repository/busybox/2, existing layers will appear in the following layout, /docker-repository/docker-repository/busybox/2.

Note: Pull command will work as expected.

Generated at Mon Feb 17 14:04:59 UTC 2020 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.