Encrypted File Problem

Thomas Baumgart thb at net-bembel.de
Sat Jun 16 09:34:16 UTC 2018


Brendan,

sorry for the delay in answering, but I just spotted this mail today. More inline.

On Mittwoch, 13. Juni 2018 19:59:05 CEST Brendan Coupe wrote:

> I'm running KMM built from 5 master on Fedora 28.
> 
> I cannot open my encrypted KMM file. It works fine on my Fedora 27 computer
> running KMM compiled from the 4.8 branch.
> 
> When I try to open my file I get the following error message:
> 
> Cannot open file as requested. Error was: Cannot read the file:
> /home/bcoupe/KMM/xxxxx.kmy


That is strange. My main datafile is encrypted ever since I developed the encryption support and I don't see this kind of problem her on my openSUSE system.


> I created a new file and encrypted it. When I try to open it I get the same
> error message.
> 
> I then created another file without encrypting it and it opens without a
> problem.

This reduces the problem to the encrypted path.

> Both my normal KMM file and the test file can be decrypted manually (gpg
> -d).
> 
> I just recompiled and got a more detailed error message:
> 
> Cannot open file as requested. Error was: Cannot read the file:
> /home/bcoupe/KMM/TestKMM5.kmy
> /usr/local/src/kmm/kmymoney-MASTER-2018.06.13-11.36.36/kmymoney/plugins/xml/xmlstorage.cpp:141

Ok, it tries to open the file for reading which fails. Since it uses a pointer to the object and works if it points to a regular (unencrypted) file, this leaves the conclusion that it has something to do with the KGPGFile object it points to.

The last change was in that area was to remove the virtual keyword from the KGPGFile::open() declaration. This should not be a problem, but one never knows.

Since you compile from source, can you apply the attached patch which will add the virtual keyword again and give some more trace output for those cases when KGPGFile::open() fails and report back?

Thanks in advance.

-- 

Regards

Thomas Baumgart

https://www.telegram.org/       Telegram, the better WhatsApp
-------------------------------------------------------------
"Hey! I could use Tex!" and I've only gotten to use it a little
so far but it's so far superiour to MS Words "be everywhere do
everything"-ness it's not even funny... (lordSauron)
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kgpg-open-problem.patch
Type: text/x-patch
Size: 2309 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20180616/e87f84af/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 846 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20180616/e87f84af/attachment-0001.sig>


More information about the KMyMoney-devel mailing list