Azure / Azure/data-api-builder
[Bug]: `/health/check` and other subpaths return 400 instead of 404
- 主要言語
- C#
- スター
- 1.5k
- フォーク
- 372
- 平均マージ
- 3日 22時間
- マージ済み PR(30日)
- 9
説明
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`.
コントリビューションガイド
調査の方向性
/health/check と /health/health への GET リクエストを再現することから始め、次に REST コントローラーの catch-all ルートと health/check の処理を追跡します。これらの一致しない health サブパスが、400 Bad Request のエンティティパスエラーではなく 404 Not Found を返すようになれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- api
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 62/100