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

Accessing latest version in virtual repo doesn't work

    XMLWordPrintable

    Details

      Description

      Created repo "test_repo" with layout

      [orgPath]/[baseRev]/[module]_([baseRev])(-[fileItegRev]).[ext]
      

      Checked in some txt files with version 1.0.x.x and 1.1.x.x.
      Executing

      GET -X "../artifactory/test_repo/test_path/[RELEASE]/test_[RELEASE].txt"
      

      returns correct file (latest 1.1.x.x version).

      Created virtual repo "virtual_test" with include pattern "/1.0./*". Virtual repo shows only versions starting with 1.0. correctly.
      Executing

      GET -X "../artifactory/virtual_test/test_path/[RELEASE]/test_[RELEASE].txt"
      

      now returns:

      {
        "errors" : [ {
          "status" : 404,
          "message" : "No repository found to serve the request for virtual_test:test_path/[RELEASE]/test_[RELEASE].txt"
        } ]
      }
      

      instead of latest 1.0.x.x version.

      I also executed

      GET "../artifactory/api/search/latestVersion?g=test_path/a=test/repos=virtual_test"
      

      Instead of latest 1.0.x.x version latest 1.1.x.x version is returned which doens't make sense because I cannot access it in virtual repo...

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            shildwein Samuel Hildwein
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: