Extension control: removing the replacement from a deprecated entry does not clear it
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
ExtensionControlService#updateExtension から始め、deprecated と replacementId の分岐、および replacementChanged がキャッシュと検索のリフレッシュをどのように駆動するかを追ってください。ExtensionControlServiceTest に、deprecated な拡張機能に既存の replacement があるが control ファイルが今は何も提供しない場合の失敗するケースを追加し、その後サービスが replacement を null にして replacementChanged を設定するようにしてください。完了とは、そのテストが通り、このケースでリフレッシュ経路が実行されることです。
索引モデルが issue の本文から書いたものです。
説明
Description
When an entry in extension-control/extensions.json (publish-extensions) stays deprecated but its extension (replacement) block is removed, the server keeps the previously stored replacement.
ExtensionControlJobRequestHandler#processDeprecatedExtensions computes replacementId = null when extension is absent and calls ExtensionControlService#updateExtension(id, true, null, downloadable). In updateExtension a null replacement is only acted on when !deprecated (the replacement is cleared). For a still-deprecated extension neither the !deprecated branch nor the replacementId != null branch runs, so extension.getReplacement() is unchanged. replacementChanged stays false, so the cached extension JSON and search entry are not refreshed either.
Observed
redhat.devspaces-copilot-chat-integration was deprecated in EclipseFdn/publish-extensions#1165 with a replacement pointing at itself (a typo). EclipseFdn/publish-extensions#1222 removes the extension block. Once merged, the server would still return the self-referencing replacement:
https://open-vsx.org/api/redhat/devspaces-copilot-chat-integration currently returns deprecated: true and replacement pointing to redhat/devspaces-copilot-chat-integration.
Expected
If the control file lists the extension as deprecated without a replacement, the stored replacement is set to null, and the caches and search entry are refreshed through the existing replacementChanged handling.
Suggested fix
In ExtensionControlService#updateExtension, set the replacement to null when deprecated is true and replacementId is null. ExtensionControlServiceTest has no case for a deprecated extension whose existing replacement is dropped; add one that fails without the fix.
Related: #2260 (same job, un-deprecation case). Until the fix is deployed, the stale value would need to be cleared manually in the DB, together with a cache eviction.
- 主要言語
- Java
- スター
- 2.1k
- フォーク
- 362
- 平均マージ
- 1日 3時間
- マージ済み PR(30日)
- 44
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eclipse-openvsx/openvsx のほかの issue
-
`ovsx verify` fails for a version older than the 100 newest of an extension対応中かも @trivikr が今日担当しました。 オープンcli
難易度 2/5 1〜3時間 初心者へのやさしさ 81/100
eclipse-openvsx/openvsx#2482 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
cli
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
eclipse-openvsx/openvsx#2423 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
eclipse-openvsx/openvsx#2476 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
eclipse-openvsx/openvsx#2439 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
eclipse-openvsx/openvsx#2438 ·
メンテナーはふだん 1 日以内に返信
eclipse-openvsx/openvsx の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 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
難易度 1/5 1時間未満 初心者へのやさしさ 67/100
メンテナーはふだん 2 日以内に返信
-
[DEFECT] AsciiDoc builders write a stray ## before every schema member when the namespace prefixes file binds the schema's own namespace対応中かも @Beehtrix が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
cimug-org/CIMTool#427 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
userRaised
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
eclipse-openj9/openj9#25285 ·
メンテナーはふだん 1 日以内に返信
-
Range type (eg Condition.onsetRange) fails IPS $summary + Observation.valueQuantity only render value in narrative対応中かも @xmhorsehead が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
hapifhir/hapi-fhir#8952 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信