Bug 487477 - Stock price refresh not working anymore
Summary: Stock price refresh not working anymore
Status: RESOLVED WORKSFORME
Alias: None
Product: kmymoney
Classification: Applications
Component: importer (show other bugs)
Version: 5.1.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-24 12:58 UTC by firefox-112
Modified: 2024-06-29 03:47 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
settings dialog (98.27 KB, image/png)
2024-05-30 04:46 UTC, firefox-112
Details

Note You need to log in before you can comment on or make changes to this bug.
Description firefox-112 2024-05-24 12:58:31 UTC
SUMMARY

With version 5.1.3 the stockprice import seems to be broken.
With the previous version included in KUbuntu 23.10 (not sure about the kmymoney version) it had been working.

I have a script that generates the stockprices in the form:

Symbol: DE000A1EWWW0
Price: 12.12
Date: 13.05.2024

QRegExps are:
* Symbol
   Symbol: (\w+)
* Price:
   Price: ([0-9.,]+)
* Date:
   Date: (\d+\D+\d+\D+\d+)
* Dateformat:
   %d %m %y
* identify by symbol

OBSERVED RESULT

The refreshing fails with: Preis für DE000A1EWWW0 kann nicht aktualisiert werden (leere Kursnotizdaten) 
(I am using the german version)

EXPECTED RESULT

It should import the stock prices


SOFTWARE/OS VERSIONS
KUbuntu 24.04
KMyMoney 5.1.3


Regards!
Comment 1 Thomas Baumgart 2024-05-27 09:33:21 UTC
Can you attach a screenshot of
a) investment configuration (the last page of the wizard)
b) the details of the configuration of the online source (the regex etc)
c) the log shown when performing the update
Thanks in advance.
Comment 2 Thomas Baumgart 2024-05-27 09:33:45 UTC
Update status
Comment 3 firefox-112 2024-05-30 04:46:11 UTC
Created attachment 169968 [details]
settings dialog
Comment 4 firefox-112 2024-05-30 04:48:04 UTC
I wasn't precise enough, I haven't been using the Wizard but the settings dialog (see attachment).

The script gives:

$ /home/foo/Projekte/Python/kmymoney_update_price/kmymoney_update_price.py DE000A1EWWW0
Symbol: DE000A1EWWW0
Price: 12.12
Date: 13.05.2024


kmymoney's output:

reading file
start parsing file
startDocument
reading securities
endDocument
Cost center model created with items 0
Payees model created with items 0
created tmpfile
kf.kio.core: Invalid URL: QUrl("/home/foo/Projekte/Python/kmymoney_update_price/kmymoney_update_price.py DE000A1EWWW0")
kf.kio.workers.file: readData() returned -1
kmymoney_webpricequote: quotedata ""


Does it mean QUrl cannot cope (anymore) with a local address? I've also tried file:///home/...
Comment 5 Thomas Baumgart 2024-05-30 12:39:45 UTC
Git commit f1565ce735f6f66a3069260886146fefb0716edc by Thomas Baumgart.
Committed on 30/05/2024 at 12:39.
Pushed by tbaumgart into branch 'fix-487477'.

Allow to use local script to retrieve quotes

This change allows to provide a local script as URL which will take care
of downloading the data and sends it to stdout.

This change is for Alkimia which now contains the logic to download
price and exchange rate information and fixes the problem in KMyMoney
master. For KMyMoney 5.1.3 a different fix maybe required.

M  +1    -1    autotests/CMakeLists.txt
M  +0    -1    src/CMakeLists.txt
M  +11   -7    src/alkonlinequote_p.cpp
M  +1    -7    src/alkonlinequote_p.h

https://invent.kde.org/office/alkimia/-/commit/f1565ce735f6f66a3069260886146fefb0716edc
Comment 6 Bug Janitor Service 2024-06-14 03:47:12 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2024-06-29 03:47:35 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!