Extension control: removing the replacement from a deprecated entry does not clear it
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 82/100
Hướng nghiên cứu
Bắt đầu trong ExtensionControlService#updateExtension, lần theo các nhánh cho deprecated và replacementId và cách replacementChanged điều khiển việc làm mới cache và tìm kiếm. Thêm vào ExtensionControlServiceTest một trường hợp thất bại trong đó một extension deprecated có replacement đã tồn tại nhưng file control giờ không cung cấp replacement nào, sau đó làm cho service đặt replacement thành null và đặt replacementChanged. Hoàn tất nghĩa là test đó chạy qua và đường làm mới chạy cho trường hợp này.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Java
- Star
- 2.1k
- Fork
- 362
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 44
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eclipse-openvsx/openvsx
-
`ovsx verify` fails for a version older than the 100 newest of an extensionCó thể đã có người làm @trivikr đã nhận hôm nay. Đang mởcli
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 81/100
eclipse-openvsx/openvsx#2482 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
cli
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
eclipse-openvsx/openvsx#2423 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
eclipse-openvsx/openvsx#2476 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
eclipse-openvsx/openvsx#2439 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
eclipse-openvsx/openvsx#2438 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eclipse-openvsx/openvsx
Issue tương tự
-
32x and 48x Item Model IssuesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Magic-team-jvav/confluence#281 ·
-
CVE-2026-139999 react-routerĐang mởarea/dependencies area/dependencies/js backport/26.6 backport/26.8 kind/cve severity/medium source/scan-dependencies status/triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 2 ngày
-
[DEFECT] AsciiDoc builders write a stray ## before every schema member when the namespace prefixes file binds the schema's own namespaceCó thể đã có người làm @Beehtrix đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
cimug-org/CIMTool#427 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
userRaised
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
eclipse-openj9/openj9#25285 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Range type (eg Condition.onsetRange) fails IPS $summary + Observation.valueQuantity only render value in narrativeCó thể đã có người làm @xmhorsehead đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
hapifhir/hapi-fhir#8952 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày