[RTFACT-15235] Artifactory instances upgraded to 5.5+ fail to accept duplicate GitLFS deployments Created: 08/Nov/17  Updated: 07/May/18  Resolved: 18/Dec/17

Status: Resolved
Project: Artifactory Binary Repository
Component/s: Git LFS
Affects Version/s: 5.5.2
Fix Version/s: 5.7.0, 5.8.0, 5.6.3

Type: Bug Priority: Normal
Reporter: Arturo Aparicio Assignee: Rotem Kfir
Resolution: Fixed Votes: 1
Labels: None

Issue Links:
Duplicate
is duplicated by RTFACT-15483 Deployment of already existing binare... Resolved
Assigned QA: Gilad Kalchheim (Inactive)
Epic Link: Q4 Customer Commitments Leap 25
Sprint: Leap 25, Leap 26, Leap 27

 Description   

Artifactory instances upgraded to 5.5+ fail to accept duplicate GitLFS deployments.

Specifically, if an object with checksum X is deployed before upgrading and then the instance is upgraded, the deployment of that same object to a different repository will fail.

To reproduce

1. Set up a new Artifactory 5.4.6 instance
2. Using GitLFS, deploy an object to a GitLFS repo
3. Upgrade the Artifactory instance to 5.5.2
4. Using GitLFS, deploy the SAME object to a different GitLFS repo
5. Notice the errors

The same issue does not occur when performing all steps on a 5.5.2 instance.

The error

Client error
Client error: http://mill.jfrog.team:12097/artifactory/gitlfs2/objects/0d/cb/0dcbc5b98c5e6cf222169ff2989f1c80ab601d613d133d9639a82aa9512d7274;sha256=0dcbc5b98c5e6cf222169ff2989f1c80ab601d613d133d9639a82aa9512d7274 from HTTP 409
artifactory.log
2017-11-08 02:05:23,917 [http-nio-8081-exec-2] [WARN ] (o.a.r.ArtifactoryResponseBase:107) - Sending HTTP error code 409: Checksum policy 'LocalRepoChecksumPolicy: CLIENT' rejected the artifact 'gitlfs2:objects/0d/cb/0dcbc5b98c5e6cf222169ff2989f1c80ab601d613d133d9639a82aa9512d7274'. Checksums info: ChecksumsInfo{checksums={SHA-1=ChecksumInfo{type=SHA-1, original='null', actual='319b26dfed4d39eea17c2b29f7b1523bc49fb1b1'}, MD5=ChecksumInfo{type=MD5, original='null', actual='f79331fc12d61547a08c7e39d0afe30e'}, SHA-256=ChecksumInfo{type=SHA-256, original='0dcbc5b98c5e6cf222169ff2989f1c80ab601d613d133d9639a82aa9512d7274', actual='null'}}}

Generated at Tue Feb 18 07:57:05 UTC 2020 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.