[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:
Trigger
Regression:
Yes
Assigned QA: Matan Katz

 Description   

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

Bug:
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 Sun Jul 21 04:46:29 UTC 2019 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.