misconfigured `servlet-root` leads to confusing state
まだ誰も着手していません。
評価
調査の方向性
ファイルルート "htdocs" とサーブレットルート "." を使用して設定を再現し、報告された行付近の filesystem-map.rkt のループと、リンクされている Racket issue 5488 を追跡します。設定ミスがどこで握りつぶされているのかを特定し、Web サーバーが汎用的なファイル未検出ページではなく明確な応答を提供できる方法を検討します。
索引モデルが issue の本文から書いたものです。
説明
I am trying to move an old use of the web server (from version 3.99 approx) to the new web server library and it has a configuration table that gets used via configuration-table->sexpr. In that configuration, file-root is set to "htdocs" and servlet-root is set to ".", but in the actual file system, the servlets are in the directory that contains "htdocs". That is, the correct configuration should have been setting servlet-root to ".." (or moving the servlets I suppose).
The problem, however, is that this configuration did not result an a sensible error message or even any error message. Instead, what happens is that an attempt to run the servlets results in a web page that says “The file you were looking for was not found on this server.”. This seems to be happening because there are some error-swallowing handlers that are pretty misleading. The real troublesome one seems to be the one in this loop that causes the web server to iterate through all of the path components of the url and eventually terminate due to this error.
I'm not sure of the best approach to dealing with this, but some thought towards a better response from the webserver to a similar kind of misconfiguration would be much appreciated. It doesn't have to be anything particularly sophisticated but tracing through what happened in the code to understand my misconfiguration was not a nice experience! 😅
- 主要言語
- Racket
- スター
- 100
- フォーク
- 48
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
racket/web-server のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
racket/web-server#46 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
racket/web-server#140 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
racket/web-server#135 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
racket/web-server#131 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
racket/web-server#127 ·
racket/web-server の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Qiskit/qiskit-ibm-runtime#3431 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
edi-adapter-client enhancement helsemelding-edi-adapter
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
navikt/helsemelding-edi-adapter#102 ·
メンテナーはふだん 1 日以内に返信
-
bug:new
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
callstackincubator/simlock#350 ·
メンテナーはふだん 1 日以内に返信
-
Booking email verification fails for plus aliases with impersonation protection enabled対応中かも @kankadev が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
calcom/cal.diy#30293 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信