-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Improve attachment handling #6606
Conversation
Ready for initial review @droidmonkey. |
c8fc32a
to
1ec9380
Compare
59432a3
to
f1b94a7
Compare
Externally opened attachments are now lifecycle-managed properly. The temporary files are created with stricter permissions and entirely random names (except for the file extension) to prevent meta data leakage. When the database is closed, the files are overwritten with random data and are also more reliably deleted than before. Changes to the temporary files are monitored and the user is asked if they want to save the changes back to the database (fixes #3130). KeePassXC does not keep a lock on any of the temporary files, resolving long-standing issues with applications such as Adobe Acrobat on Windows (fixes #5950, fixes #5839). Internally, attachments are copied less. The EntryAttachmentsWidget now only references EntryAttachments instead of owning a separate copy (which used to not be cleared properly under certain circumstances).
f1b94a7
to
bb2c9fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made an improvement to the save/discard dialog, it will only be shown once no matter how many times a file change is detected. Before it would shown another dialog for the same file many times.
I also fixed the attachment widget buttons getting scrunched up in the advanced tab of the edit entry widget.
Fixes #2400
Fixes #3130
Fixes #5950
Fixes #5839
Fixes #1695
Fixes #6648
Type of change