Sample --info option rejects values that contain an equals sign

オープン
#251 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

@MatheoPaiva がすでに取り組んでいます。

2026年11月15日 から。

  • #260 @MatheoPaiva による — オープン

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
java
領域
cli

調査の方向性

The --info parsing is at samples/src/main/java/com/backblaze/b2/sample/B2.java lines 365-366, where the argument is split on "=" and must yield exactly two parts. Read those lines first. Open pull request #260 already targets this, so check it before starting. Done means a value containing "=" such as url=http://x/?a=b is accepted and the rest of the value is kept intact.

索引モデルが issue の本文から書いたものです。

説明

What happens

The sample's --info option splits the argument with split("=") and requires exactly two parts. A value that itself contains = (for example --info url=http://x/?a=b) is refused with a usage error.

Where

samples/src/main/java/com/backblaze/b2/sample/B2.java:365-366.

Why it matters

Impact: Docs and messages (a sample option limitation), loud. Severity: Low, because it only affects a sample command, the error is clear, and nothing is harmed.

How to check

Found by reading the code, not reproduced. Read the two lines. Using split("=", 2) would keep the rest of the value.

Version

Seen at v6.5.0. Present on the default branch: present.

主要言語
Java
スター
103
フォーク
23
平均マージ
5日 8時間
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Backblaze/b2-sdk-java のほかの issue

Backblaze/b2-sdk-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。