Bug 507959

Summary: online quote configuration - regression/behavior change from 5.1.3
Product: [Applications] kmymoney Reporter: b3+bugs-kde-org
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: REPORTED ---    
Severity: minor    
Priority: NOR    
Version First Reported In: 5.2.1   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: 5.1.3 online quote configuration, and workaround for 5.2.1

Description b3+bugs-kde-org 2025-08-07 02:11:02 UTC
Created attachment 183843 [details]
5.1.3 online quote configuration, and workaround for 5.2.1

SUMMARY

An online quote configuration from version 5.1.3 of kmymoney does not work in version 5.2.1 of kmymoney. It appears that the handling of the "%1" -type markers differs between the versions. I believe the current behavior is unintended and likely a regression bug.

WORKAROUND

A workaround is to avoid using "%1" in any of the regex pattern matching (configuration) strings.  This is not an ideal solution, but probably workable for most online quote configurations.

OBSERVED RESULT

It seems that version 5.2.1 does not substitute the "%1" marker in the "Identifier" configuration string (and maybe others). This generates a regex error when trying to retrieve online prices. This behavior differs from that of version 5.1.3 of kmymoney.

EXPECTED RESULT

I'd expect string substitutions for the "%1" -type markers to be performed before the configurations strings are processed as regex expressions.

SOFTWARE/OS VERSIONS

KMyMoney: 5.2.1-c3d3f7e (kmymoney-5.2-4600-linux-gcc-x86_64.AppImage)
Alkimia: 8.2.70 (build against 8.2.70)
Aqbanking: Unknown (build against 6.6.1)
Gpgme: Unknown (build against 1.23.2)
Gwenhywfar: Unknown (build against 5.12.1)
KDiagram: Unknown (build against )
libical: Unknown (build against 3.0.9)
libofx: Unknown (build against 7.0.4)
SQLCipher: Unknown (build against 3.20.1)
KDE Frameworks: 6.16.0
Qt: Using 6.8.3 and built against 6.8.3
Debian GNU/Linux 13 (trixie) (Xcb)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.12.38+deb13-amd64

ADDITIONAL INFORMATION

The attachement shows the original and workaround configurations.