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

Aberta
#252 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 3 dias

@MatheoPaiva já está trabalhando nisso.

Desde 15/11/2026.

  • #261 de @MatheoPaiva — aberto

Avaliação

Dificuldade
1/5
Tempo estimado
Menos de uma hora
Facilidade para iniciantes
15/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
java
Domínio
tooling

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Java
Estrelas
103
Forks
23
Merge médio
5d 8h
PRs com merge (30d)
3

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de Backblaze/b2-sdk-java

Todas as issues de Backblaze/b2-sdk-java

Issues semelhantes

Mais issues de Java

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.