FHIR package loading falls back to public registries and fails silently (vscode-cql#106)

Aperta
#158 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java, kotlin

Direzione di ricerca

Start with IgContextManager and the FHIR package loading path, then read the linked vscode-cql#106 reproduction details and HAPI 6.9.12 behavior. The proposed work spans client error reporting, registry fallback rules, authenticated proxy downloads, and ADR-0001 in docs/adr/. Done means package-load failures reach the client, configured mirror-only behavior is respected, proxy credentials work for downloads, and the ADR documents the approach.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Supports cqframework/vscode-cql#106.

When the language server loads an IG's FHIR package dependencies, HAPI (org.hl7.fhir.utilities
6.9.12 in LS 5.0.0) falls back to build.fhir.org and the package's canonical site whenever no
server configured in ~/.fhir/fhir-settings.json can supply a package. It does this even with
ignoreDefaultPackageServers: true. If that fails too, IgContextManager logs one WARN and
skips the dependencies, so validation reports success with no diagnostics and the user never
sees the failure.

Reproduced against 5.0.0. The details are in
https://github.com/cqframework/vscode-cql/issues/106#issuecomment-6768501546. Two common
triggers:

  • the registry doesn't host a package the LS needs. The LS loads hl7.fhir.r4.core first, so a
    registry with only private packages fails straight away.
  • the registry's dist.tarball URL is outside the configured server url path, so HAPI doesn't
    send the token and the download gets a 401.

Proposed work. An ADR describing the approach will come with the PR for this issue.

  • Report package-load failures to the client, for example as a diagnostic or notification,
    instead of only logging a WARN.
  • Mirror-only behaviour when ignoreDefaultPackageServers is set, either with an LS-side
    guard or an upstream HAPI change.
  • Install a proxy java.net.Authenticator that uses http.proxyUser/http.proxyPassword,
    so authenticated proxies work for package downloads.
  • Add docs/adr/ with ADR-0001, "Runtime network access (FHIR packages, proxies, TLS)".
Lingua principale
Kotlin
Stelle
2
Fork
4
Merge medio
1g 16h
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cqframework/cql-language-server

Tutte le issue di cqframework/cql-language-server

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.