Adapters with required settings unset are still listed to users

Aperta
#191 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
62/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
api, backend

Direzione di ricerca

Start with the ./publisher.sh platforms config set --unset command and the GET /v1/platforms listing that still returns the adapter. Then find where the listing filters enabled adapters and where GetOAuth2AuthorizationUrl and GetPNBACode read required settings. Reproduce by unsetting a required key and confirming the platform still appears. Done when an adapter with a missing required setting is left out of the listing and those two calls no longer fail with a generic INTERNAL error.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

An enabled adapter is listed to users even when a required setting is unset, and linking through it fails with a generic error.

Steps to reproduce

  1. Run ./publisher.sh platforms config set <name> --unset <required key>.
  2. GET /v1/platforms still lists the platform.
  3. Call GetOAuth2AuthorizationUrl or GetPNBACode for it: the server returns INTERNAL.

Expected: an adapter isn't listed to users until its required settings are set.

Lingua principale
Python
Stelle
16
Fork
5
Merge medio
8h 23m
PR unite (30g)
18

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 smswithoutborders/RelaySMS-Publisher

Tutte le issue di smswithoutborders/RelaySMS-Publisher

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.