Temp-Files of attachments will not be deleted when cancel dialog
A lightweight and easy-to-use password manager
Brought to you by:
dreichl
Temp-Files of attachments will not be deleted when cancel dialog.
Way to reproduce:
Now the temp-file of the attachment is NOT deleted and Keepass leaves secure data which is accessable for everyone.
Please fix
After opening the attachment, you first need to close Excel and then choose what KeePass should do with the temporary file (import or discard changes).
KeePass' dialog explicitly states: "After viewing/editing and closing the file in the external application, please choose how to continue". If you do it the other way around, the file may still be locked by the external application (preventing deletion by KeePass).
If you accidentally close KeePass' dialog first and KeePass cannot delete the file, it shows a warning dialog, in which you can choose whether to retry or cancel. If you click 'Cancel', KeePass gives up trying to delete the file; this is the expected behavior.
Best regards,
Dominik