Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-20437

Artifactory /api/search/versions does not return expected versions.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 6.12.2
    • Fix Version/s: None
    • Component/s: REST API
    • 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,

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            atlassianbuildteam Atlassian Build Team
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: