`ovsx verify` fails for a version older than the 100 newest of an extension
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 81/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- java, nodejs, typescript
Research direction
Start with resolveVersion in cli/src/verify.ts and inspect how it uses registry.getMetadata; the issue also points to the related fix in #2472. Check the verification behavior for a published version older than the 100 newest, and confirm it still handles missing versions correctly. Done means verification can find older published versions without first fetching latest metadata.
Written by the indexing model from the issue text.
Description
ovsx verify cannot verify a package whose version is older than the 100 newest versions of the extension. It fails with:
<namespace>.<name> has no published version '<version>'.
even though the version is published and signed.
Cause
resolveVersion in cli/src/verify.ts first fetches the latest metadata, then looks up the package's version in its allVersions map. The server only lists the 100 newest versions there, so an older version is never found. get -v had the same limit, which #2472 fixed.
Suggested fix
Fetch the exact version directly with registry.getMetadata(namespace, extensionName, target, manifest.version) instead of starting from the latest metadata. That covers every published version and also saves a request.
Found while reviewing #2481.
- Dominant language
- Java
- Stars
- 2.1k
- Forks
- 362
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 44
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
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 eclipse-openvsx/openvsx
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
eclipse-openvsx/openvsx#2469 ·
Maintainers usually reply within 1 day
-
cli
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
eclipse-openvsx/openvsx#2423 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
eclipse-openvsx/openvsx#2476 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
eclipse-openvsx/openvsx#2439 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
eclipse-openvsx/openvsx#2438 ·
Maintainers usually reply within 1 day
All issues in eclipse-openvsx/openvsx
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Magic-team-jvav/confluence#281 ·
-
area/dependencies area/dependencies/js backport/26.6 backport/26.8 kind/cve severity/medium source/scan-dependencies status/triage
Difficulty 1/5 Under an hour Newbie friendliness 67/100
Maintainers usually reply within 2 days
-
[DEFECT] AsciiDoc builders write a stray ## before every schema member when the namespace prefixes file binds the schema's own namespacePossibly taken @Beehtrix claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cimug-org/CIMTool#427 · 1 comment ·
Maintainers usually reply within 1 day
-
userRaised
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
eclipse-openj9/openj9#25285 ·
Maintainers usually reply within 1 day
-
Range type (eg Condition.onsetRange) fails IPS $summary + Observation.valueQuantity only render value in narrativePossibly taken @xmhorsehead claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
hapifhir/hapi-fhir#8952 · 2 comments ·
Maintainers usually reply within 1 day