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

Latest version search API is querying remote repositories while it should not

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 4.16.0, 5.0.0
    • Fix Version/s: 5.5.2
    • Component/s: REST API, Search
    • Labels:
      None

      Description

      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, http://104.197.13.215)
      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

        Attachments

          Activity

            People

            • Assignee:
              lizad Liza Dashevski (Inactive)
              Reporter:
              arturoa Arturo Aparicio
              Assigned QA:
              Anastasiya Muntyan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: