FHIR package loading falls back to public registries and fails silently (vscode-cql#106)
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- backend, documentation, networking
Research direction
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.
Written by the indexing model from the issue text.
Description
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.corefirst, so a
registry with only private packages fails straight away. - the registry's
dist.tarballURL is outside the configured serverurlpath, 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
ignoreDefaultPackageServersis set, either with an LS-side
guard or an upstream HAPI change. - Install a proxy
java.net.Authenticatorthat useshttp.proxyUser/http.proxyPassword,
so authenticated proxies work for package downloads. - Add
docs/adr/with ADR-0001, "Runtime network access (FHIR packages, proxies, TLS)".
- Dominant language
- Kotlin
- Stars
- 2
- Forks
- 4
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 3
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cqframework/cql-language-server
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
multiple IG project fhir/package cache stubsMay be free again @raleigh-g-thompson claimed this 145 days ago, and no pull request is open. Openenhancement
cqframework/cql-language-server#155 · 1 assignee ·
-
debugger isn't working with muti-project setupsMay be free again @raleigh-g-thompson claimed this 146 days ago, and no pull request is open. Openbug
cqframework/cql-language-server#154 · 1 assignee ·
-
Need smaller jar buildMay be free again @raleigh-g-thompson claimed this 157 days ago, and no pull request is open. Openenhancement
cqframework/cql-language-server#146 · 1 assignee ·
-
Update master branch protection required checks after CI workflow rewriteMay be free again @brynrhodes claimed this 169 days ago, and no pull request is open. Openenhancement
cqframework/cql-language-server#142 · 1 assignee ·
All issues in cqframework/cql-language-server
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
The engine's "loaded, but had errors" message leaves out which library and line each error is inOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
cqframework/clinical_quality_language#1980 ·
Maintainers usually reply within 3 days
-
Fun requireFragmentManager has been renamed to getParentFragmentManagerPossibly taken @xuenhua claimed this today. Openunconfirmed
Difficulty 1/5 Under an hour Newbie friendliness 82/100
thunderbird/thunderbird-android#11984 · 1 comment ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Droid-Deck/DroidDeck#3496 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
AChep/keyguard-app#1709 · 1 comment ·
Maintainers usually reply within 11 days