[RTFACT-20437] Artifactory /api/search/versions does not return expected versions. Created: 27/Oct/19  Updated: 04/Nov/19

Status: Open
Project: Artifactory Binary Repository
Component/s: REST API
Affects Version/s: 6.12.2
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Atlassian Build Team Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Hi there,

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.

Cheers,


Generated at Tue Jan 21 12:18:38 UTC 2020 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.