Sample lists parts of file3 instead of the unfinished large file in its loop
Maintainer thường phản hồi trong vòng 3 ngày
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 15/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Java
- Star
- 103
- Fork
- 23
- Merge trung bình
- 5 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Backblaze/b2-sdk-java
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Backblaze/b2-sdk-java#248 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Backblaze/b2-sdk-java#247 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Backblaze/b2-sdk-java#246 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Backblaze/b2-sdk-java#245 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Backblaze/b2-sdk-java#242 ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của Backblaze/b2-sdk-java
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
IETF-Hackathon/pqc-certificates#351 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug(core): skip_nodes.json is missing SELECT and PRE, causing Python and Java to insert separators into dropdown options and preformatted textCó thể đã có người làm @Bhumit267 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ExceptionThrowShouldUseContext: NullPointerException on a catch block inside an annotation typeCó thể đã có người làm @Carbon14-48 đã nhận hôm nay. Đang mởapproved
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
checkstyle/checkstyle#22784 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày