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

Abierto
#252 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

@MatheoPaiva ya está trabajando en esto.

Desde el 15/11/2026.

  • #261 de @MatheoPaiva — abierto

Evaluación

Dificultad
1/5
Tiempo estimado
Menos de una hora
Aptitud para principiantes
15/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
java
Área
tooling

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Java
Estrellas
103
Forks
23
Merge medio
5 d 8 h
PR fusionados (30 d)
3

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Backblaze/b2-sdk-java

Todos los issues de Backblaze/b2-sdk-java

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.