-
Type:
Bug
-
Status: Closed
-
Resolution: Deferred
-
Affects Version/s: 7.19.4
-
Fix Version/s: None
-
Component/s: Artifactory, Helm
-
Labels:None
-
Environment:
Artifactory 7.19.8 rev 71908900
-
Location:External
We recently upgraded to 7.19.8 and our helm repo stopped functioning. We were able to trace the issue back to malformed Chart.yaml files in already existing charts, which caused indexing to fail, resulting in an empty index.yaml in the virtual repo.
Chart.yaml (note the trailing " on the version)
apiVersion: v1 appVersion: 19.4.0000.0002 description: Helm chart of LS-Secrets name: ls-secrets version: 19.4.0000.0002"
Index log error:
Unable to find source-code formatter for language: text. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
2021-06-14T16:16:35.038Z ESC[1;32m[jfrt ]ESC[0;39m ESC[1;31m[ERROR]ESC[0;39m [73ca8c7bf6dc324b] [.a.h.r.m.HelmVirtualMerger:256] [art-exec-105 ] - Couldn't read index file in local repository BPhelm-local : while parsing a block mapping in 'reader', line 75060, column 5: - apiVersion: v1 ^ expected <block end>, but found '<scalar>' in 'reader', line 75068, column 30: version: "19.4.0000.0002"" ^ at [Source: (org.jfrog.storage.binstore.common.ReaderTrackingInputStream); line: 75068, column: 30] (through reference chain: org.jfrog.repomd.helm.model.HelmIndexYamlMetadata["entries"]->java.util.LinkedHashMap["lsrest"]->java.util.TreeSet[8])
Ideally, Artifactory should be modified so that it either handles these special characters properly, or fails gracefully for individual chart errors so it can continue indexing the rest of them.