Azure / Azure/data-api-builder
[Bug]: `/health/check` and other subpaths return 400 instead of 404
- Lingua principale
- C#
- Stelle
- 1.5k
- Fork
- 370
- Merge medio
- 3g 22h
- PR unite (30g)
- 9
Descrizione
Requesting subpaths like `/health/check` or `/health/health` returns **400 Bad Request** with a REST controller error instead of **404 Not Found**.
## Expected
```
GET /health/check → 404 Not Found
GET /health/health → 404 Not Found
```
## Actual
```
GET /health/check → 400 Bad Request
Body: {"error":{"code":"BadRequest","message":"Invalid Path for route: health/check.","status":400}}
```
These requests fall through to the REST controller's catch-all route, which tries to interpret `health/check` as an entity path. The error logs show `DataApiBuilderException: Invalid Path for route: health/check`.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo le richieste GET a /health/check e /health/health, quindi segui la route catch-all del controller REST e la sua gestione di health/check. Il lavoro è completato quando questi sottopercorsi health senza corrispondenza restituiscono 404 Not Found invece di un errore di percorso dell'entità 400 Bad Request.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 62/100