decode without using the entire input
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- javascript
- 領域
- backend
調査の方向性
decode のエントリポイントから始め、複数の bencoded パートを含む、提供された JavaScript の例を再現します。この issue では、最初のパートを返すのか、例外を発生させるのか、別の動作にするのかが決まっていないため、完了には末尾の入力に対する動作を確定し、それをどのように伝えるかについて合意することが必要です。
索引モデルが issue の本文から書いたものです。
説明
Not sure if this is a bug or not but I'd like to discuss how decode should behave when we feed multiple parts.
Example:
bencode.decode('i123ei123e', 'utf8'); // 123
The input has more data than that. When we use the decode function, it silently returns just the first decoded part. Is this intended?
I saw some cases where a single buffer they wanted to decode had multiple bencoded parts (it was some data received from the network they had no control over). And when they used this lib, it was silently missing parts. So they had to implement some logic to check if the decoded result was everything the input had or not. They managed to get everything working, but I'm wondering if the lib should give a heads up (exception or whatever) when this happens.
- 主要言語
- JavaScript
- スター
- 173
- フォーク
- 38
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
webtorrent/node-bencode のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
webtorrent/node-bencode#162 · リアクション 1 件 ·
-
decode.bytes does not adhere to abstract-encoding spec対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
webtorrent/node-bencode#178 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
webtorrent/node-bencode#146 · コメント 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
webtorrent/node-bencode#143 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 58/100
webtorrent/node-bencode#142 ·
webtorrent/node-bencode の issue をすべて見る
似ている issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 67/100
Morni-Team/pkmessenger#44 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
status/needs-triage type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
PKU-YuanGroup/OpenAI4S#218 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
debpalash/VoiceStudio#2678 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 3 日以内に返信