[RTFACT-13589] Latest version search API is querying remote repositories while it should not Created: 02/Feb/17  Updated: 14/Nov/17  Resolved: 11/Oct/17

Status: Resolved
Project: Artifactory Binary Repository
Component/s: REST API, Search
Affects Version/s: 4.16.0, 5.0.0
Fix Version/s: 5.5.2

Type: Bug Priority: Normal
Reporter: Arturo Aparicio Assignee: Liza Dashevski (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Assigned QA: Anastasiya Muntyan
Epic Link: Q4 Customer Commitments Leap 22
Sprint: Leap 20, Leap 22, Leap 23


The latest version search API is querying remote repositories when it should not.

Notice the documentation states that it will only search remote repositories if it is explicitly told to.

To reproduce:

1. Create a remote maven repository and set it to a URL that is not reachable (for example,
2. Perform a generic query using the latestVersion, for example:
curl -XGET -u admin:password http://localhost:8081/artifactory/api/search/latestVersion?g=org.acme&a=artifact&v=1.0-SNAPSHOT
3. Notice the long delay and the failure in the logs

Workaround: Query specific repositories

Generated at Thu Nov 21 06:05:25 UTC 2019 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.