String instance is broken with non-ASCII data
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- haskell
- 領域
- networking
調査の方向性
まず、データの送信と受信を行う String API ヘルパーの経路を追跡し、次に各経路が Content-Type ヘッダーと文字エンコーディングをどのように扱うかを調べます。両側で使用されているエンコーディングを比較し、呼び出し元がそれを制御できる箇所を特定します。String インスタンスを削除せずに、送受信時の非 ASCII String データが一貫して処理されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Although the package works with String, and indeed encourages its use by having that be the default type in some of the API helper functions, the handling of non-ASCII data is completely broken. We should be doing encoding properly to be consistent with the Content-Type header, both when sending and receiving.
This has been reported by a couple of users so far and is clearly pretty nasty, but I don't think it's trivial to fix because presumably the receiving and sending sides can use different encodings and when sending requests we ought to be optionally giving the user control of the encoding.
The alternative of removing the String instances completely is likely to be very disruptive so I don't think it's a reasonable option.
- 主要言語
- Haskell
- スター
- 186
- フォーク
- 59
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
haskell/HTTP のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 55/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
enhancement tricorder
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
zip-archive-0.5 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
commercialhaskell/stackage#8124 · コメント 1 件 ·