Lufi hangs when uploading a file after removing a file #854
Labels
No Label
administration
Akkoma
Android
Bare metal
bug
Communication
Community
Cryptpad
Discussion
Documentation
duplicate
enhancement
etherpad
Feature request
Feedback
finances
Fixed
forgejo
fun_project
Goal 2024
help wanted
Howto
🤔️ Investigate
ios
jitsi
lacre
Lacre Test
ldap
Lemmy
LibreTranslate
low prio
Lufi
macos
Mail
Merch
monitoring
movim
needs_refine
New Auth
Nextcloud
nice to have
on hold
proposal
question
Ready
refined
Roundcube
searX
spam-protection
Staging Server
Themes
TOR
Urgent!
Website
windows
wontfix
xmpp
Yearly Report
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Disroot/Disroot-Project#854
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
In some situations Lufi can hang when uploading a file. While it is easy to work around this issue once you know about it, it can cause confusion to users.
Easy way to reproduce the problem:
Notes
The second file does not need to be the original one. Any file of non-smaller size will do.
If the file that is uploaded and then removed is smaller than the 760KiB size, then this problem will trigger only when trying to replace it with a larger file. Actually, it seems that the second file needs to be about the same size or larger than the original file, though I have not tested this exhaustively.
Thoughts (may be misdirecting):
It seems to me that, when eliminating a file that had been uploaded, some state, associated with that slot, is not reset properly. Applying the old state to the new file causes the problem we see if the old state does not "fit" the new file (something to to with the file size? space allocation?).
I could reproduce the issue following your instructions. We'll need to investigate it.
Thanks for reporting this.
I reported upstream coz I don't think it a problem on disroot's side:
https://framagit.org/fiat-tux/hat-softwares/lufi/-/issues/298