`ovsx verify` fails for a version older than the 100 newest of an extension

Open Beginner friendly
#2,482 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@trivikr is already working on this.

Since Dec 2, 2026.

  • #2483 by @trivikr — open

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
Domain
backend, cli

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

cli

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from eclipse-openvsx/openvsx

All issues in eclipse-openvsx/openvsx

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.