Skip to content

[PM-37649] Fix admin panel web vault version fetch error handling#7653

Open
singhvishalkr wants to merge 1 commit into
bitwarden:mainfrom
singhvishalkr:fix-admin-web-vault-version-fetch
Open

[PM-37649] Fix admin panel web vault version fetch error handling#7653
singhvishalkr wants to merge 1 commit into
bitwarden:mainfrom
singhvishalkr:fix-admin-web-vault-version-fetch

Conversation

@singhvishalkr
Copy link
Copy Markdown

Fixes #7142

The admin panel shows "Unable to fetch installed version" for the Web Vault version when running behind a reverse proxy. The GetInstalledWebVersion method only catches HttpRequestException, but proxies can cause other failure modes.

The fix adds handling for:

  • Timeouts: TaskCanceledException when the request takes too long (common behind slow proxies)
  • Invalid JSON: JsonException when the response isn't valid JSON
  • Missing property: KeyNotFoundException when the response lacks a "version" field
  • Non-success status: Now logs a warning and returns a proper error instead of silently returning "-"

All error paths now consistently return "Unable to fetch installed version" with a 500 status code, and each scenario is logged for debugging.

Behind reverse proxies, the request to fetch web vault version can fail
in various ways that weren't previously handled:

- Request timeouts (TaskCanceledException)
- Invalid JSON responses (JsonException)
- Missing 'version' property (KeyNotFoundException)
- Non-success HTTP status codes (now logged as warning)

All these scenarios now return a proper error message instead of
silently failing or showing '-'.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 16, 2026

CLA assistant check
All committers have signed the CLA.

@bitwarden-bot
Copy link
Copy Markdown
Collaborator

Thank you for your contribution! We've added this to our internal Community PR board for review.
ID: PM-37649
Link: https://bitwarden.atlassian.net/browse/PM-37649

Details on our contribution process can be found here: https://contributing.bitwarden.com/contributing/pull-requests/community-pr-process.

@bitwarden-bot bitwarden-bot changed the title Fix admin panel web vault version fetch error handling [PM-37649] Fix admin panel web vault version fetch error handling May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admin Panel “Web Vault: Unable to fetch installed version”

3 participants