Bug 436228

Summary: Unspecific warning on loading an encrypted file without having gpg keys installed
Product: [Applications] kmymoney Reporter: Ralf Habacker <ralf.habacker>
Component: fileAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.1.1   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In:
Attachments: Screenshot showing the issue

Description Ralf Habacker 2021-04-26 18:22:58 UTC
Created attachment 137933 [details]
Screenshot showing the issue

SUMMARY
If gpg support is present but not enabled, kmymoney tries to open a gpg-encrypted file. If no gpg keys are present, which is the case when installing on a new machine, it outputs a non-specific message that the file could not be loaded (see attached screenshot). 

STEPS TO REPRODUCE
1. download kmymoney from https://kmymoney.org/snaphsots.php
2. unpack file and start kmymoney
3. make sure that no gpg keys are installed in the gnupg home directory e.g. by renaming the directory if present (inspect the line Home: from running gpg2 --version to get the path)
4. open gpg encrypted kmymoney file

OBSERVED RESULT
A message box is shown with an unspecific message, that the file could not be opened.

EXPECTED RESULT
kmymoney should output a more specific message about the causes for this case, so that the user can identify and fix the cause of the problem.

SOFTWARE/OS VERSIONS
Windows: 10
KDE Frameworks Version: 5.65.0
Qt Version: 5.11