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

Virtual helm repository index breaks if chart with version: "null" uploaded to Artifactory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 4 - Normal
    • Resolution: Deferred
    • Affects Version/s: 6.17.0
    • Fix Version/s: None
    • Component/s: Helm
    • Labels:
    • Severity:
      Medium

      Description

      Steps to reproduce:

      1. Create helm-a-local, helm-b-local repositories
      2. Create helm-c-virtual to aggregate repositories from step 1
      3. Deploy Chart A to helm-a-local
      4. Deploy Chart B to helm-b-local
      5. helm-c-virtual/index.yaml now has both versions/charts (Chart A & Chart B)
      6. Deploy Chart C (which has version: "null") to helm-b-local
      7. helm-c-virtual/index.yaml now has only Chart A, but not Chart B and C.

      artifactory.log: 

      2020-01-13 15:34:24,145 [http-nio-8081-exec-6] [INFO ] (o.a.e.UploadServiceImpl:399) - Deploy to 'helm-a-local:test-chart-a-0.1.0.tgz' Content-Length: 513
      2020-01-13 15:34:24,216 [art-exec-12] [INFO ] (o.a.a.h.HelmServiceImpl:210) - Starting Helm index calculation for helm-a-local
      2020-01-13 15:34:24,593 [art-exec-12] [INFO ] (o.a.a.h.HelmServiceImpl:218) - Finished Helm index calculation for helm-a-local
      2020-01-13 15:35:12,541 [http-nio-8081-exec-8] [INFO ] (o.a.e.UploadServiceImpl:399) - Deploy to 'helm-b-local:test-chart-b-0.1.1.tgz' Content-Length: 515
      2020-01-13 15:35:12,645 [art-exec-14] [INFO ] (o.a.a.h.HelmServiceImpl:210) - Starting Helm index calculation for helm-b-local
      2020-01-13 15:35:12,759 [art-exec-14] [INFO ] (o.a.a.h.HelmServiceImpl:218) - Finished Helm index calculation for helm-b-local
      2020-01-13 15:36:38,252 [http-nio-8081-exec-3] [INFO ] (o.a.e.UploadServiceImpl:399) - Deploy to 'helm-b-local:test-chart-c-null.tgz' Content-Length: 518
      2020-01-13 15:36:38,352 [art-exec-10] [INFO ] (o.a.a.h.HelmServiceImpl:210) - Starting Helm index calculation for helm-b-local
      2020-01-13 15:36:38,459 [art-exec-10] [INFO ] (o.a.a.h.HelmServiceImpl:218) - Finished Helm index calculation for helm-b-local
      2020-01-13 15:36:43,976 [art-exec-2] [ERROR] (o.a.a.h.r.m.HelmVirtualMerger:185) - Couldn't read index file in local repository helm-b-local : (was java.lang.NullPointerException) (through reference chain: org.jfrog.repomd.helm.model.HelmIndexYamlMetadata["entries"]->java.util.LinkedHashMap["test-chart-c"]->java.util.TreeSet[0])
      

      Chart A: (Chart.yaml)

      apiVersion: v1
      appVersion: "1.0"
      description: Test chart a
      keywords:
      - test
      name: test-chart-a
      version: 0.1.0

      Chart B: (Chart.yaml)

      apiVersion: v1
      appVersion: "1.0"
      description: Test chart b
      keywords:
      - test
      name: test-chart-b
      version: 0.1.1

       
      Chart C: (Chart.yaml)

      apiVersion: v1
      appVersion: "1.0"
      description: Test chart with null version
      keywords:
      - test
      name: test-chart-c
      version: "null"
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            valeriyp Valeriy Petrov
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Sync Status

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