Bug 450309 - File decryption is not working (decrypted file is not created)
Summary: File decryption is not working (decrypted file is not created)
Status: REPORTED
Alias: None
Product: kgpg
Classification: Applications
Component: general (show other bugs)
Version: 21.08.1
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Rolf Eike Beer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-15 14:55 UTC by Attila Fülöp
Modified: 2022-02-15 15:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Fülöp 2022-02-15 14:55:44 UTC
SUMMARY
***
I try to decrypt a file (encrypted with the application, file created with something.txt.asc name) with the "File/Decrypt File..." function, however the file is not created.

***


STEPS TO REPRODUCE
1. Open KGpg main application
2. Click on "File/Open editor" 
3. In the new window click on the "File/Decrypt File..."
4. In the "Open File to Decode" window select the file (something.txt.asc), click "Open"
5. In the "Decrypt File To" window select the name of the output file and click on "Ok"
6. Provide the passphrase to unlock the OpenPGP secret key, click "Ok"

OBSERVED RESULT

File is not created.

EXPECTED RESULT

File is created.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Kubuntu 21.10/5.22.5
(available in About System)
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

In order to reproduce this, the output directory can not contain the file with the name the user specifies in step 5. In short, if the user encrypts the file (i.e: something.txt) and decrypts the file (something.txt.asc) - without deletion of the original file: something.txt - the user might think it works, because the "File already exists" window will pop up, but actual file overwrite will not be performed. If the user click on the "Suggest New Name" button a new name will be suggested, but after clicking on the "Rename" button, the file with this  - suggested name - will not be created.
Comment 1 Rolf Eike Beer 2022-02-15 15:05:02 UTC
I suspect this is a duplicate of bug 444848. Which GnuPG-Version are you using?
Comment 2 Attila Fülöp 2022-02-15 15:26:07 UTC
$gpg --version
gpg (GnuPG) 2.2.20
libgcrypt 1.8.8
Comment 3 Attila Fülöp 2022-02-15 15:45:07 UTC
I would mention that when the user double click (or whatever number of clicking for execution is set) on the something.txt.asc file in Dolphin, the system (I guess based on the asc file extension) perform the decryption (so the something.txt file does not exists) and the something.txt file is genereted with the correct content (after typing the correct passphrase).