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

Retrieve Latest Artifact REST API returns 500 error when a remote repository is configured under the Virtual repository

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Artifactory, REST API
    • Labels:
      None
    • Severity:
      Medium
    • Location:
      External

      Description

      Problem description: 

      When using the Retrieve Latest Artifact against the virtual repository which contains a remote repository the request will fail with error 500 :"Could not process download request: null"

      Additionally, if a virtual repository contains only a remote repository, the first GET request will create a [RELEASE] directory under the remote repository in the Artifactory UI.

       

      What is the expected behavior? The latest artifact will be retrieved as expected.

       

      Steps to reproduce:

      • Create a remote generic repository, for example: https://releases.jfrog.io/artifactory/jfrog-cli/
      • Create a custom layout with Artifact path pattern: [orgPath]/[baseRev]/[module]/jf([classifier])(.[ext])Folder Integration Revision RegExp and File Integration Revision RegExp: .*
      • Create a generic local repository with the custom layout
      • Create a virtual repository with the local and remote repository
      • Cache a few artifacts from the remote repository, and copy them to the local repository (see screenshot)
      • Run the REST API against the virtual repository, we will receive 500 error in the response: http://<URL>/artifactory/<VIRTUAL_REPOSITORY>/v2-jf/[RELEASE]/jfrog-cli-windows-amd64/jf.exe
      • Remove the remote repository from the virtual and re-run the REST API, the latest version will be retrieved as expected.

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              andreyg Andrey Granovsky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-26964 -
                  SYNCHRONIZED
                  • Last Sync Date: