Plugin status shows an error after reloading plugins that are already loaded

Đang mở
#2,059 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Wikid82 đang làm issue này rồi.

Từ ngày 25/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

backend bug

What: POST /api/v1/admin/plugins/reload while a DNS provider plugin is already loaded sets that plugin's status in the plugin list to error: failed to register plugin: dns provider already registered, although the plugin stays registered and usable.

Where: backend/internal/services/plugin_loader.go, LoadPlugin (~line 183) registers the provider again without checking loadedPlugins for the same path. Same code on development.

Evidence: found by QA on the branch for #2058 (container check: load a plugin, call reload, read the plugin list).

Severity: low (misleading status only).

Suggested approach: skip a plugin whose path is already loaded, or unregister and re-register it, and keep the status as loaded. Add a test that reloads twice.

Found while working on #2058.

Ngôn ngữ chính
Go
Star
17
Fork
2
Merge trung bình
1 giờ 42 phút
Pull request đã merge (30 ngày)
173

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Wikid82/Charon

Tất cả issue của Wikid82/Charon

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.