-
Notifications
You must be signed in to change notification settings - Fork 690
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
Attempting to delete a reply whose corresponding GPG file is missing generates a 500 in the JI #5543
Comments
possibly related to #4787 |
I was going to agree that the file being gone is the desired state, so we could just purge the This situation is going to cause the same problem as #4787 but right now the cleanup tool we'd tell the admin to run does not address replies, just submissions. |
Just adding my standard caveat, let's try for a simple fix for 1.6.0 as discussed, but if scope expands significantly we may have to defer. :) |
I think the recco in #4787 for the related case is the best option overall - delete the entry and flash a message like "the database and file store are in an inconsistent state - this can be manually resolved by an administrator, so go get one." |
@rmol are you sure the cleanup tool doesn't sort out replies? ISTR you adding that later in. |
@zenmonkeykstop Pretty sure it only checks submissions. I think you're remembering that the inverse operation, looking for files without database records, needed improving so that reply files wouldn't be counted as disconnected because they didn't have submission records. |
Description
Attempting to delete a reply whose corresponding GPG file is missing generates a 500 in the JI
Steps to Reproduce
In the JI:
On the app server:
/var/lib/securedrop/store
In the JI:
Expected Behavior
Good question! I would err on the side of deleting the db entry and calling it done. But it could flag the issue to the user in more detail than that provided by the 500 error page text.
This also has issues for deleting multiple files - if multiples are selected, deletion stops at the missing reply file. Expected behaviour in that case would be to continue with the operation.
Actual Behavior
500 error thrown. If multiple files selected for deletion, all files listed after the buster reply file remain in place.
The text was updated successfully, but these errors were encountered: