Bug 419248 - Kleopatra doesn't export secret key if file with same name exists but reports successful export
Summary: Kleopatra doesn't export secret key if file with same name exists but reports...
Status: REPORTED
Alias: None
Product: kleopatra
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Andre Heinecke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-26 01:25 UTC by Justin
Modified: 2020-03-26 01:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin 2020-03-26 01:25:29 UTC
SUMMARY
Kleopatra is unable to export secret keys by overwriting preexisting files with the same name (probably public variant of the key in most scenarios). Despite the files not being overwritten (files remain unchanged), Kleopatra reports that the export was successful. The user is also not asked for the passphrase.

STEPS TO REPRODUCE
1. Select certificate
2. Export public key as file
3. Select the same certificate again
4. Export to the same folder and same default name

OBSERVED RESULT
Save dialogue asks if I want to overwrite the file, if "Overwrite" is selected it closes and Kleopatra returns a success dialogue without even asking for passphrase.

EXPECTED RESULT
Kleopatra should overwrite the file if the option was selected and export the key normally or it should return a fail dialogue if it can't.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 19.10
(available in About System)
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION
Attempted to save to a VirtualBox shared folder, unsure if this affects results however.