I installed KMyMoney on a new computer running Windows 10 and then copied my .kmy file from my old computer running Windows 7. Now when I do Account.Update Account it asks me for a password every time, instead of storing the the online banking password in kwallet as before. Reproducible: Always Steps to Reproduce: 1. install KMyMoney on windows 10 2. copy a .kmy file over 3. open an account mapped to online banking 4. select Account.Update Account Actual Results: asked for password every time Expected Results: password stored in kwallet, not asked for password after 1st time.
Which online banking are you using? HBIC/aqbanking or OFX?
I am using OFX, but I found that I needed to edit each account and check the "store password" option and then it works again.
kwalletd is not available on Windows - it is required to find out what is used on Windows to store ofx passwords. If this happens inside kmymoney, the related source code should give informations about this. If not this will be probably libofx.
The password is stored inside the KMY file with the accounts kvp in case kwallet is not available and the password should be remembered. The relevant code can be found in bool KOnlineBankingSetupWizard::chosenSettings(MyMoneyKeyValueContainer& settings)
Do I understand the following code from the mentioned function if (m_storePassword->isChecked()) { if (d->m_walletIsOpen) { QString key = OFX_PASSWORD_KEY(settings.value("url"), settings.value("uniqueId")); d->m_wallet->writePassword(key, settings.value("password")); settings.deletePair("password"); } } else { settings.deletePair("password"); } correctly that if wallet is not open the password will be simply deleted ?
Git commit 704ef3376ca9889b6ceab3cbf9166b407a7133fa by Ralf Habacker. Committed on 16/11/2017 at 22:46. Pushed by habacker into branch 'master'. Add ofx test web service to www.kmymoney.org A +154 -0 ofxtest.php https://commits.kde.org/websites/kmymoney-org/704ef3376ca9889b6ceab3cbf9166b407a7133fa
(In reply to Ralf Habacker from comment #6) > Add ofx test web service to www.kmymoney.org > Service does not work on public kde server - filed a sysadmin request https://phabricator.kde.org/T7461 Assigning an ofx online account using this service running on a local host with kmymoney 4.8.1 on Windows 10 showed that the passwords is indeed saved in the kmymoney file. Unfortunally this does not explain why the passwords are lost on an update to Windows 10.
(In reply to Ralf Habacker from comment #7) > (In reply to Ralf Habacker from comment #6) > > Add ofx test web service to www.kmymoney.org > > > Service does not work on public kde server - filed a sysadmin request > https://phabricator.kde.org/T7461 Service works now including a simple account update - ofx testing should now be possible for anyone without having a dedicated ofx account.
(In reply to Ralf Habacker from comment #7) > Unfortunally this does not explain why the passwords are lost on an update > to Windows 10. I can reproduce the issue with kmymoney 4.8.1 on Windows 10 by using the following steps: 1. I created a file configured with an ofx online account on Windows 7 2. I copied the file to a Windows 10 system and opened this file with kmymoney 4.8.1 3. An online account update of the mapped account is performed without asking any password 4. Opening the account settings shows an uncheck "save" check box and no password in shown 5. Saving account settings deletes the password from the kmymoney file and password is requested on next account online update The bug seems to be in KOnlineBankingSetupWizard::walletOpened(bool ok) where the password save checkbox is only enabled if a wallet is open m_storePassword->setEnabled(d->m_walletIsOpen); Entering the password again and checking the "save" checkbox saves the password in the kmymoney file (with a notice that is is saved as clear text), but after reloading the file the "save" checkbox is unchecked again. Further opens of the account settings and saving without reentering the password and checking the 'save' checkbox deletes the password from the kmymoney file.
Can you give more information about how to actually use this ofx test web service, and what types of requests it is able to reply to?
Open https://kmymoney.org/ofxtest.php in a browser - I hope it will give you the required information
> The bug seems to be in KOnlineBankingSetupWizard::walletOpened(bool ok) > where the password save checkbox is only enabled if a wallet is open > > m_storePassword->setEnabled(d->m_walletIsOpen); > One option is to let Windows behavior exactly as on non Windows - to add kwalletd to the Windows installation. This would be possible with 4.8.2.
kwalletd was added to windows installer and portable package.