Sample finish_uploading_large_file accepts 5 arguments but usage allows 6

Offen
#250 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.

  • #259 von @MatheoPaiva — offen

Bewertung

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

Rechercherichtung

The mismatch sits in samples/src/main/java/com/backblaze/b2/sample/B2.java: the usage text near line 64 for finish_uploading_large_file and the checkArgCount(args, 3, 5) call near line 565. Count the tokens in the usage line and compare them with the maximum argument count. Work is already under way in open pull request #259, so check that before starting. Done means the accepted maximum matches the usage line.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

What happens

The usage text for finish_uploading_large_file is [--noProgress] [--threads N] <bucketName> <largeFileId> <localFileName>, which is up to 6 tokens, but the command calls checkArgCount(args, 3, 5). Using both options together is refused with a usage error.

Where

samples/src/main/java/com/backblaze/b2/sample/B2.java:565 (checkArgCount(args, 3, 5)) and :64 (usage text).

Why it matters

Impact: Docs and messages (sample argument count does not match its usage), 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. Count the tokens in the usage line at line 64 and compare with the maximum at line 565. Changing the maximum to 6 would match.

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.