Bug 399378 - Unable to Update Prices
Summary: Unable to Update Prices
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.0.1
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-04 14:51 UTC by Robert Blackwell
Modified: 2018-10-16 13:51 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.0.2


Attachments
Price update dialog (15.61 KB, image/png)
2018-10-13 14:21 UTC, Thomas Baumgart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Blackwell 2018-10-04 14:51:15 UTC
SUMMARY

I upgraded KMyMoney 4.8 to Version 5.0.80-b775f19e on a Windows 10 Pro PC this morning. Prior to the upgrade I uninstalled the previous version. Following the upgrade I was unable to update funds or currency. My attempt at doing so results in the following errors;

Fetching URL https://fx-rate.net/CAD/EUR...
The file or folder https://fx-rate.net/CAD/EUR does not exist.
Unable to update price for CAD > EUR (empty quote data)
Fetching URL https://fx-rate.net/CAD/USD...
The file or folder https://fx-rate.net/CAD/USD does not exist.
Unable to update price for CAD > USD (empty quote data)
Fetching URL https://fx-rate.net/CAD/XCD...
The file or folder https://fx-rate.net/CAD/XCD does not exist.
Unable to update price for CAD > XCD (empty quote data)
Fetching URL https://fx-rate.net/EUR/CAD...
The file or folder https://fx-rate.net/EUR/CAD does not exist.
Unable to update price for EUR > CAD (empty quote data)
Fetching URL http://web.tmxmoney.com/funds-ca-quote. ... =TDB2582...
The file or folder http://web.tmxmoney.com/funds-ca-quote. ... ol=TDB2582 does not exist.
Unable to update price for TDB2582 (empty quote data)
Fetching URL http://web.tmxmoney.com/funds-ca-quote. ... l=TDB331...
The file or folder http://web.tmxmoney.com/funds-ca-quote. ... bol=TDB331 does not exist.
Unable to update price for TDB331 (empty quote data)
Fetching URL https://fx-rate.net/USD/CAD...
The file or folder https://fx-rate.net/USD/CAD does not exist.
Unable to update price for USD > CAD (empty quote data)
Fetching URL https://fx-rate.net/USD/XCD...
The file or folder https://fx-rate.net/USD/XCD does not exist.
Unable to update price for USD > XCD (empty quote data)
Fetching URL https://fx-rate.net/XCD/CAD...
The file or folder https://fx-rate.net/XCD/CAD does not exist.
Unable to update price for XCD > CAD (empty quote data)

Using either of the URL's identified in the error message (https://web.tmxmoney.com/funds-ca-quote.php?qm_symbol=TDB2582 or https://web.tmxmoney.com/funds-ca-quote.php?qm_symbol=TDB331) I'm able to load the respective page for each fund in a browser. I can also load the currency exchange page using the respective URL (ie: https://fx-rate.net/USD/CAD). All values in the price update settings match those from version 4.8; albeit there are a few new fields in 5.x

I don't understand why these errors are occurring as the same on-line services used in 4.8 is being used in 5.0. I've no knowledge in this area of KMyMoney however I'm wondering, based on the error, if KMyMoney finds the correct page but is unable to write a temp file to Windows. Is this possible? If not, what could the issue be?

STEPS TO REPRODUCE
1. Launch Update Stock and Currency Prices
2. Select Update all
3. 


EXPECTED RESULT

Update of Stock and Currency Prices


SOFTWARE VERSIONS
KDE Frameworks 5.50.0
Qt 5.11.2 (built against 5.11.2)
The windows windowing system

ADDITIONAL INFORMATION

Funds are setup to download data from TMX Money
Currency uses default settings of KMyMoney
Comment 1 Thomas Baumgart 2018-10-05 15:02:01 UTC
Git commit 15c9f3ac39c8719095ee9aaa66097d1bd191380b by Thomas Baumgart.
Committed on 05/10/2018 at 15:02.
Pushed by tbaumgart into branch '5.0'.

Fix problem with leading slash in filenames under ms-windows

A URL of the form file:///C:/abc.xyz is returned as /C:/abc.xyz when the
path() method is used. This causes the QFile::open() method to fail. The
QUrl::toLocalFile() method does return C:/abc.xyz in this case.
Related: bug 395980

M  +2    -3    kmymoney/kmymoney.cpp
M  +2    -2    kmymoney/plugins/ofx/import/dialogs/konlinebankingsetupwizard.cpp
M  +3    -2    kmymoney/plugins/ofx/import/ofximporter.cpp
M  +14   -8    kmymoney/plugins/ofx/import/ofxpartner.cpp
M  +1    -1    kmymoney/plugins/xml/xmlstorage.cpp

https://commits.kde.org/kmymoney/15c9f3ac39c8719095ee9aaa66097d1bd191380b
Comment 2 Robert Blackwell 2018-10-07 16:26:46 UTC
Running version 5.0.2-85cc72af; the error still occurs. The output of the update price window is listed below. It's the same as previously reported.

I noticed a couple of other issues; 1) The "Backup" feature fails to save the file reporting an "Error copying file to device", and 2) QFX updates D/Led from my bank fail reporting an error "C:/Users/rcbla/Downloads/C:/Users/rcbla/Downloads/accountactivity (65).qfx is either an invalid filename or the file does not exist. You can open another file or create a new one.". Please note the double entry of the file path in the file name.

Let me know if the latter errors are not related, I will open bug reports for them. 

Fetching URL https://fx-rate.net/CAD/EUR...
The file or folder https://fx-rate.net/CAD/EUR does not exist.
Unable to update price for CAD > EUR (empty quote data)
Fetching URL https://fx-rate.net/CAD/USD...
The file or folder https://fx-rate.net/CAD/USD does not exist.
Unable to update price for CAD > USD (empty quote data)
Fetching URL https://fx-rate.net/CAD/XCD...
The file or folder https://fx-rate.net/CAD/XCD does not exist.
Unable to update price for CAD > XCD (empty quote data)
Fetching URL https://fx-rate.net/EUR/CAD...
The file or folder https://fx-rate.net/EUR/CAD does not exist.
Unable to update price for EUR > CAD (empty quote data)
Fetching URL http://web.tmxmoney.com/funds-ca-quote.php?qm_symbol=TDB2582...
The file or folder http://web.tmxmoney.com/funds-ca-quote.php?qm_symbol=TDB2582 does not exist.
Unable to update price for TDB2582 (empty quote data)
Fetching URL http://web.tmxmoney.com/funds-ca-quote.php?qm_symbol=TDB331...
The file or folder http://web.tmxmoney.com/funds-ca-quote.php?qm_symbol=TDB331 does not exist.
Unable to update price for TDB331 (empty quote data)
Fetching URL https://fx-rate.net/USD/CAD...
The file or folder https://fx-rate.net/USD/CAD does not exist.
Unable to update price for USD > CAD (empty quote data)
Fetching URL https://fx-rate.net/USD/XCD...
The file or folder https://fx-rate.net/USD/XCD does not exist.
Unable to update price for USD > XCD (empty quote data)
Fetching URL https://fx-rate.net/XCD/CAD...
The file or folder https://fx-rate.net/XCD/CAD does not exist.
Unable to update price for XCD > CAD (empty quote data)
Comment 3 Thomas Baumgart 2018-10-13 14:21:37 UTC
Created attachment 115625 [details]
Price update dialog

This is with KMyMoney Version 5.0.2-eec473d3 on a Windows system. It could be that I fixed this problem with a recent commit. Can you double-check? This can be found on the 5.0 branch.
Comment 4 Robert Blackwell 2018-10-13 14:40:22 UTC
I'm unable to find the information provided earlier in regards to links for these D/L's. Would you mind posting them here so I can D'L the correct file.

Thank you
Comment 5 Robert Blackwell 2018-10-13 17:29:32 UTC
Wait, found the page with the links you identified before https://kmymoney.org/build.php

This is where I DLed the version I last reported on. Based on your last comments, this isn't the correct place to download the update from. Please advise.

Thank you
Comment 6 Robert Blackwell 2018-10-16 13:51:15 UTC
With the help of Thomas I've narrowed my issue down to the Windows PC upon which KMyMoney is installed. Installation on another Windows PC showed the application was working fine. While troubleshooting the PC having issues running KMyMoney I've re-installed the application, manually cleared entries from the registry and deleted files from the hard drive. I've been successful at resolving a couple of issues however Price Update remains a problem. I will post a solution here if I find one.