[RTFACT-20437] Artifactory /api/search/versions does not return expected versions. Created: 27/Oct/19 Updated: 04/Nov/19
|Project:||Artifactory Binary Repository|
|Reporter:||Atlassian Build Team||Assignee:||Unassigned|
We are using artifactory rest endpoint /api/search/versions to query a specific version pattern 1000.*.0 . However the endpoint does not return all versions available.We have more than 4k versions for the version pattern. If we use /api/search/versions?g=groupId&a=artifactId&v=1000.*.0&repos=my-repo, artifactory returns 2k+ versions. If we use /api/search/versions?g=groupId&a=artifactId&v=1000.*.0 (without repos=my-repo param), artifactory returns 4k+ version, but still not all. Note all versions of the artifact exist in my-repo.
We have confirmed that increasing artifactory.search.userQueryLimit can help, but that should not be considered as a proper workaround as the property affects other aql results as well.
Ideally the endpoint should respect artifactory.search.userQueryLimit and return results with pagination if there are too many.