Webhook "Test" returns bare 403 when the login screen is disabled
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Start with DiagnosticsController.cs and the UI path for Settings → Notifications, then trace how the test-notification endpoint handles the [LocalOrAdmin] response. The issue suggests displaying a useful explanation when the request is forbidden; check related issue #655 for the similar API-key behavior. Done when the failure explains the login-screen or local/API-key requirement and the UI presents that message.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Version: canary-1.3.4 (ghcr.io/listenarrs/listenarr), Docker on Unraid, login screen disabled (default)
What happens
In Settings → Notifications, clicking Test on a webhook fails with:
{"type":"https://tools.ietf.org/html/rfc9110#section-15.5.4","title":"Forbidden","status":403,"traceId":"..."}
It fails identically for any webhook URL, including a public one, and nothing is written to the container log.
Cause
POST /api/v1/diagnostics/test-notification is marked [LocalOrAdmin] (DiagnosticsController.cs). With authentication disabled, no caller is an authenticated admin, so anyone not on loopback (i.e. every browser reaching the container over the LAN) gets a 403.
Why it's a problem
- The UI shows the raw error with no hint that enabling the login screen fixes it. It looks like a broken webhook or ntfy setup.
- Enabling the login screen and creating an admin user makes the Test work, so the guard behaves as coded. The failure is silent and misleading.
Suggested fix
Return a message like "Testing webhooks requires the login screen to be enabled or a local/API-key request", and have the UI show it. Related: #655 (same pattern for the API-key endpoints, where the UI also hides the 403).
- Lingua principale
- C#
- Stelle
- 901
- Fork
- 70
- Merge medio
- 16h 27m
- PR unite (30g)
- 60
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Listenarrs/Listenarr
-
Search button on a book does not retry without the author when the full query finds nothingForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Listenarrs/Listenarr#1173 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Listenarrs/Listenarr#1133 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Listenarrs/Listenarr#1128 ·
I maintainer di solito rispondono entro 1 giorno
-
Add New's search splits a title that contains "Series:", "Author:"… as if they were search keywordsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Listenarrs/Listenarr#1127 ·
I maintainer di solito rispondono entro 1 giorno
-
p3
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
Listenarrs/Listenarr#971 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Listenarrs/Listenarr
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
conductor-oss/csharp-sdk#183 ·
-
CreateNewLangProj throws when the default analysis writing system's ICU locale differs from its tagAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
kind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
unoplatform/uno#26555 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
CactuseSecurity/firewall-orchestrator#5739 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno