Sample lists parts of file3 instead of the unfinished large file in its loop

Ouverte
#252 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 3 jours

@MatheoPaiva y travaille déjà.

Depuis le 15/11/2026.

  • #261 par @MatheoPaiva — ouverte

Évaluation

Difficulté
1/5
Temps estimé
Moins d'une heure
Accessibilité débutants
15/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
java
Domaine
tooling

Piste de recherche

The problem is in the unfinished-large-files loop in samples/src/main/java/com/backblaze/b2/sample/B2Sample.java, lines 179-183, where the parts call sits at line 181. Read the loop body to see which variable the heading uses and which one the call uses. Pull request #261 is already open against this issue, so check it before starting. Done means the parts listed for each unfinished file come from that file's own id.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

What happens

In the unfinished-large-files loop, the sample prints the file id of each largeFileVersion but then calls client.parts(file3.getFileId()). It lists the parts of the earlier uploaded file on every pass instead of the parts of the unfinished file being shown.

Where

samples/src/main/java/com/backblaze/b2/sample/B2Sample.java:179-183 (the call is at :181).

Why it matters

Impact: Docs and messages (wrong output in a demo), loud. Severity: Low, because it only affects sample output and nothing is harmed.

How to check

Found by reading the code, not reproduced. Read the loop body: the loop variable largeFileVersion is used for the heading but not for the parts call. Changing line 181 to client.parts(largeFileVersion.getFileId()) fixes it.

Version

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

Langage dominant
Java
Étoiles
103
Forks
23
Merge moyen
5 j 8 h
PR mergées (30 j)
3

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Backblaze/b2-sdk-java

Toutes les issues de Backblaze/b2-sdk-java

Issues similaires

Plus d'issues Java

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.