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

downloadTagFile & downloadBranchFile API endpoints throw NPE when a VCS remote has caching disabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 4.14.1, 4.16.0, 5.0.1
    • Fix Version/s: None
    • Component/s: VCS
    • Labels:
      None

      Description

      Steps to reproduce:

      1. Set up a remote VCS repo for your GitHub enterprise / Github global website. Either use the 'GitHub' provider or the custom provider with the following scheme:

       {0}/{1}/archive/{2}.{3}) 
      • Under 'Advanced' disable the 'Store Artifacts locally'.

      2. Issue a request for a Tag/Branch and witness they are retrieved correctly in a zip archive
      3. Issue a request for downloadTagFile & downloadBranchFile e.g.:

      $ curl "localhost:8080/artifactory/api/vcs/downloadTagFile/gitEnt/andreik/someRepo/1.0.0%21README.md"

      And you will hit:

      {
        "errors" : [ {
          "status" : 404,
          "message" : "Zip resources download failed due to: null"
        } ]
      }
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            andreik Andrei Komarov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: