[kmymoney] [Bug 450593] Unable to update price for CAD with fx-rate.net

Thomas Baumgart bugzilla_noreply at kde.org
Sun Feb 27 18:17:33 GMT 2022


https://bugs.kde.org/show_bug.cgi?id=450593

--- Comment #17 from Thomas Baumgart <thb at net-bembel.de> ---
Git commit 70d611778e96246d76d49f3981dd7eb9248a7779 by Thomas Baumgart.
Committed on 27/02/2022 at 18:16.
Pushed by tbaumgart into branch 'master'.

Don't use invalid price pairs

For some reason price entries of the form "from currency to security"
are contained in the database (xml and sql). Such entries don't disturb
the price retrieval of KMyMoney as it can swap from and to if needed,
but they cause the online price update to be confused and failing.

The reason why these entries appear is yet unclear and needs to be
investigated further. To avoid these entries to cause problems during
online price update, they will not be listed in the price updater. This
change also removes those entries when writing the data file (or the
database for that matter) the next time. A respective debug message is
printed to the console.

This does not finally fix the problem reported but it cures the
symptoms.

(cherry picked from commit 31fa4f402441c364394d0a2b5d7ac46b5f944e42)

M  +4    -1    kmymoney/dialogs/kequitypriceupdatedlg.cpp
M  +11   -0    kmymoney/dialogs/kmymoneypricedlg.cpp
M  +10   -0    kmymoney/plugins/sql/mymoneystoragesql_p.h
M  +16   -2    kmymoney/plugins/xml/mymoneystoragexml.cpp

https://invent.kde.org/office/kmymoney/commit/70d611778e96246d76d49f3981dd7eb9248a7779

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


More information about the KMyMoney-devel mailing list