[kmymoney] [Bug 425752] Failure while writing GPG encrypted .kmy to network share (cifs)

Jack bugzilla_noreply at kde.org
Sun Nov 29 23:09:59 GMT 2020


--- Comment #5 from Jack <ostroffjh at users.sourceforge.net> ---
The QFileDevice::flush is a warning, not an error, and my guess (which may be
completely wrong) is that it is called when KMM closes the temporary output
file it writes, before trying to copy it over the original.  

Is the $NETWORKSHARE literally what the error says, or did you substitute to
not show your actual share name?  I don't know if it matters, but I'm wondering
if on the first write attempt, the share is not mapped, so the write fails, but
that write attempt causes the share to get mapped, so it works on a retry.

Question for the developers: looking at xmlstorage.cpp the comment above line
552 says QFile::rename will fail, but line 551 is "if
(!QFile::remove(localFile) || !QFile::copy(writeFile, localFile))".  Should
that remove be rename?  I don't see why the remove would fail, the first OR
second try, so I'm confused either way.

You are receiving this mail because:
You are the assignee for the bug.

More information about the KMyMoney-devel mailing list