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

Offen
#251 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 3 Tagen

@MatheoPaiva arbeitet bereits daran.

Seit 15.11.2026.

  • #260 von @MatheoPaiva — offen

Bewertung

Schwierigkeit
1/5
Geschätzter Aufwand
Unter einer Stunde
Anfängerfreundlichkeit
25/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Tech-Stack
java
Bereich
cli

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Java
Sterne
103
Forks
23
Ø Merge
5 T. 8 Std.
Gemergte PRs (30 T.)
3

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Backblaze/b2-sdk-java

Alle Issues in Backblaze/b2-sdk-java

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.