Originally reported on KDE's bug tracker for gpg4win 4.3.1 (https://bugs.kde.org/show_bug.cgi?id=492756).
Input: A file that is encrypted for an OpenPGP key and with a passphrase.
Try to decrypt this file with Kleopatra. A pinentry asking for the (symmetric) "passphrase for decryption" pops up.
Note for testing: Restart the background processes after each case to clear the password caches.
Case 1: Cancel the pinentry dialog asking for the symmetric passphrase
-> Kleopatra shows
Decryption canceled.
Expected: A pinentry asking for the passphrase of the OpenPGP key pops up.
Case 2: Enter an empty symmetric passphrase (i.e. simply press Return)
-> A pinentry asking for the passphrase of the OpenPGP key pops up.
Enter the correct passphrase for the key.
-> Kleopatra shows
Decryption failed: Bad passphrase.
Expected: Kleopatra reports success and allows to save the decrypted file.
Case 3: Enter a wrong symmetric passphrase
-> A pinentry asking for the passphrase of the OpenPGP key pops up.
Enter the correct passphrase for the key.
-> Kleopatra reports success and allows to save the decrypted file.
This is the expected behavior.
Note: In all cases, gpg asks for the passphrase of the OpenPGP key and then decrypts the data.