[RTFACT-9844] Artifact in remote-repo-cache is not getting "SourceDelete" property set after a HEAD request Created: 15/Apr/16  Updated: 18/Nov/18

Status: Open
Project: Artifactory Binary Repository
Component/s: Smart Remote Repository
Affects Version/s: 4.7.1
Fix Version/s: None

Type: Improvement Priority: High
Reporter: Tim Telman Assignee: Unassigned
Resolution: Unresolved Votes: 3
Labels: None


 Description   

Steps to reproduce:

1. If you create a smart repo and then remove the artifact from source repository then it will disappear from cache based on the 'Retrieval cache value' in remote repository configuration. So in this case if no one has downloaded the artifacts then both repository shows the same contents.
2. If any artifacts are downloaded from remote repo then it will be cached into remote repo cache. Ideally if we simply do a head request (-I) then artifacts will have the 'SourceDeleted' property set in remote cache. We just tried that and somehow head request (-I) is not setting up this property.

curl -I http://artifactory/artifactory/list/naren-orbit/ORBIT/ORBIT_Release_1.0.0.0(1.0.0.0)/EORMREP_Web_Server_Release_1.0.0.0.zip

We can only see the 'SourceDeleted' property when we downloaded the file.
curl -o /tmp/t.zip http://artifactory/artifactory/list/naren-orbit/ORBIT/ORBIT_Release_1.0.0.0(1.0.0.0)/EORMREP_Web_Server_Release_1.0.0.0.zip


Generated at Sat Apr 04 11:10:36 UTC 2020 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.