You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On iteration $i$ through the for-loop in securedrop.management.submissions.delete_disconnected_fs_submissions(), bytes_deleted = 0 can cause rate to be set to 0 in—
Description
On iteration$i$ through the for-loop in
securedrop.management.submissions.delete_disconnected_fs_submissions()
,bytes_deleted = 0
can causerate
to be set to0
in—securedrop/securedrop/management/submissions.py
Line 161 in f5ca29b
—leading to a$i + 1$ in:
ZeroDivisionError
in the next iterationsecuredrop/securedrop/management/submissions.py
Line 153 in f5ca29b
Steps to Reproduce
/var/lib/securedrop/store
manage.py delete-disconnected-fs-submissions --force
Expected Behavior
Disconnected submissions are deleted.
Actual Behavior
The text was updated successfully, but these errors were encountered: