Http4s blaze should provide better feedback when rejecting a bad request (400)
まだ誰も着手していません。
評価
調査の方向性
blaze-server/src/main/scala/org/http4s/server/blaze/Http1ServerStage.scala の 317 行目付近から始めます。ここで issue は、拒否されたリクエストに対する debug レベルのログを特定しています。例の URL に対して、現在 400 レスポンスと logging がどのように動作するかを確認し、その後、info レベルのログ、レスポンスの詳細、またはその両方のどれを選ぶべきかについて maintainer の指針を求めます。選択した動作によって、デフォルトの logging レベルまたはレスポンスから拒否を診断できるようになれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I'll start explaining myself with an example. Let's say we deploy an http4s blaze server with info level logging. We then hit the server with a request for http://127.0.0.1:8080/foo?bar={} and get 400 in response. The response body is empty - no feedback there. The logs? No info there too. (for now, let's not discuss why this is a valid URL according to Firefox and Chrome and an invalid according to parboiled)
Switching logger level to debug, would give us the precious error message. But IMO using debug logs on production is not the way to go. I would like the problem to be diagnosable "by default", and the IMO info level is the "default" for production. So what can we do about it?
- This log could be an info level log.
- The response message could contain error information.
I can make a PR for one or both of these, but I would like to first hear your (maintainers'/community) opinion on that. Especially I would like to know which solution you would prefer.
- 主要言語
- Scala
- スター
- 371
- フォーク
- 63
- 平均マージ
- 4時間 12分
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
http4s/blaze のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
-
support
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
canton-network/splice#8087 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 73/100
lichess-org/lila#22298 ·
メンテナーはふだん 1 日以内に返信
-
Task 🔧
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
valkey-io/valkey-glide#7455 ·
メンテナーはふだん 1 日以内に返信