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

Aperta
#2,059 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Wikid82 ci sta già lavorando.

Dal 25/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
Go
Stelle
17
Fork
2
Merge medio
1h 42m
PR unite (30g)
173

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Wikid82/Charon

Tutte le issue di Wikid82/Charon

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.