-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
downloading animation never ends if the file cannot be decrypted #754
Comments
@rmol started working on this today |
A recent change that was merged to |
Actually I decided to make a issue, because it looks like the issue started when we mismatched the slot and signal signatures, which the open PR fixes. |
The animation problem was because we used to use a timer to start the animation, and if the download process finished before the animation started, regardless of success or failure, the stop request happened early so the animation kept going. This was fixed in #768. |
this was reintroduced at some point |
nvm i saw this when raising crypto error during the download step, which should never happen. i see this fixed with the following diff: --- a/securedrop_client/api_jobs/downloads.py
+++ b/securedrop_client/api_jobs/downloads.py
@@ -172,6 +172,7 @@ class DownloadJob(ApiJob):
Decrypt the file located at the given filepath and mark it as decrypted.
'''
try:
+ raise CryptoError('test')
original_filename = self.call_decrypt(filepath, session)
mark_as_decrypted(
type(db_object), db_object.uuid, session, original_filename=original_filename
(END)
|
STR
gpg --decrypt filepath
because of a bad key, missing encrypted file in the expected filepath, etc. For repro purposes I suggest raising CryptoError during the decryption step of a file.Expected
"Failed to download" message and the "Download" button to replace "Downloading" animation
Actual
"Failed to download" message and the "Downloading" animation continues indefinitely:
The text was updated successfully, but these errors were encountered: