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

Abierto
#2,059 0 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@Wikid82 ya está trabajando en esto.

Desde el 25/11/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.

Lenguaje dominante
Go
Estrellas
17
Forks
2
Merge medio
1 h 42 min
PR fusionados (30 d)
173

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Wikid82/Charon

Todos los issues de Wikid82/Charon

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.