mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 08:25:54 +02:00
[PR #289] [MERGED] Fix FTP download reporting success on 0-byte files #992
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy-maziggy-1#992
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/maziggy/bambuddy/pull/289
Author: @maziggy
Created: 2/7/2026
Status: ✅ Merged
Merged: 2/7/2026
Merged by: @maziggy
Base:
main← Head:0.1.8.1📝 Commits (2)
70e7cbaFix FTP download reporting success on 0-byte filesb27f198Merge branch 'main' into 0.1.8.1📊 Changes
2 files changed (+6 additions, -0 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
backend/app/services/bambu_ftp.py(+5 -0)📄 Description
download_to_file() returned True when retrbinary transferred 0 bytes without raising an exception. This caused the /cover endpoint to hit the empty file check and raise HTTP 500 instead of retrying or returning 404.
Now treats 0-byte downloads as failures, allowing the cover endpoint's retry logic to work and falling back to 404 if all attempts fail.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.