Affects Version/s: 6.11.3, 6.12.2
Fix Version/s: None
Conan smart remote repository pull replication doesn't work when configured with /api/conan in the URL, when pull replication is scheduled or manually triggered, in the artifactory.log the below log entry is seen where replication is successful with 0 deployed files although nothing is replicated,
2019-09-25 07:28:13,155 [art-exec-5717] [INFO ] (o.a.a.c.BasicStatusHolder:218) - Completed remote folder replication for conan-smart-repo/ with 0 deployed files, 0 deleted files, 0 properties change, 0 statistics change, 0 mkDirs... average events per second 0
When /api/conan is removed from the remote URL, pull replication is actually completed and replicates all the artifacts as shown in the below log entries from Artifactory.log,
2019-09-25 07:28:58,882 [http-nio-8081-exec-1] [INFO ] (o.a.a.r.c.ReplicationAddonImpl:638) - Activating manual remote repository replication for 'conan-smart-repo'
2019-09-25 07:28:58,883 [http-nio-8081-exec-1] [INFO ] (o.a.a.r.c.ReplicationDescriptorHandler:175) - Replication activated manually for repository 'conan-smart-repo'
2019-09-25 07:28:58,883 [art-exec-5703] [INFO ] (o.a.a.c.BasicStatusHolder:218) - Starting remote folder replication for 'conan-smart-repo'.
2019-09-25 07:28:58,910 [art-exec-5703] [INFO ] (o.a.a.r.c.BaseReplicationProducer:218) - Executing file list request: 'http://mill.jfrog.info:12352/artifactory/api/storage/conan-local/?list&deep=1&listFolders=1&mdTimestamps=1&statsTimestamps=1&includeRootPath=1'
2019-09-25 07:28:58,954 [replication-consumer-1569396538883-0] [INFO ] (o.a.r.HttpRepo :432) - conan-smart-repo downloading http://mill.jfrog.info:12352/artifactory/conan-local/conan-package.tgz 4.29 MB
2019-09-25 07:28:59,066 [replication-consumer-1569396538883-0] [INFO ] (o.a.r.HttpRepo :445) - conan-smart-repo downloaded http://mill.jfrog.info:12352/artifactory/conan-local/mysql-connector-java-8.0.16.zip 4.29 MB at 39,175.01 KB/sec
2019-09-25 07:28:59,075 [replication-consumer-1569396538883-0] [INFO ] (o.a.a.c.BasicStatusHolder:218) - Removing the properties of 'conan-smart-repo-cache:mysql-connector-java-8.0.16.zip'.
2019-09-25 07:28:59,083 [art-exec-5703] [INFO ] (o.a.a.c.BasicStatusHolder:218) - Completed remote folder replication for conan-smart-repo/ with 1 deployed files, 0 deleted files, 1 properties change, 0 statistics change, 0 mkDirs... average events per second 10.05
Steps to reproduce:
- Create a conan-local repository in a distant Artifactory.
- Create a smart remote repository that points to the conan-local repository with /api/conan endpoint.
- Trigger manual replication, replication is successful but nothing is cached under the conan cache repository.
- Remove the /api/conan endpoint from the URL and trigger the replication
- Replication is successful and the artifacts are downloaded and cached in the conan cache repository